Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Defederating an instance doesn't fully ignore or reject follow requests from that instance #3256

Open
VyrCossont opened this issue Aug 31, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@VyrCossont
Copy link
Contributor

Describe the bug with a clear and concise description of what the bug is.

Follow requests are still stored, and the follow request count includes invisible requests from defederated instances.

What's your GoToSocial Version?

main

GoToSocial Arch

No response

What happened?

A user from instance.tld sent me a follow request. I defederated from instance.tld without acting on the follow request. Now I have an empty follow request list, but a follow request count of 1. Looking at the follow_requests table shows the follow request from the defederated instance.

What you expected to happen?

As a user, I should see a follow request count of 0 if I have an empty follow request list.

I'd expect GtS to drop requests from defederated instances. If for some reason we're storing them (for example, in the case of an accidental defederation that might need to be reversed), then the follow request count should skip follow requests from those instances.

How to reproduce it?

No response

Anything else we need to know?

No response

@VyrCossont VyrCossont added the bug Something isn't working label Aug 31, 2024
@tsmethurst
Copy link
Contributor

That's annoying indeed. Did you do the defederate by catching the instance in a wildcard match by any chance? Ie., was the domain something like poop.instance.tld and you defedded instance.tld? Just checking.

@VyrCossont
Copy link
Contributor Author

@tobi In this case, I think it was an exact match, but unfortunately I don't have the info to be sure any more.

@NyaaaWhatsUpDoc
Copy link
Member

could this perhaps be old data lingering? what's the date on the follow request compared to the domain block itself?

@VyrCossont
Copy link
Contributor Author

Here's another case that causes the same symptom: if I block a user before rejecting their follow request, even if the user is not from a domain that I have defederated (m.s in this case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants