-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Allow removing followers and fix follow rejections #3124
Conversation
* adds the ability to remove a user from your followers list * fixes verbs.Reject to process reject activities for previously accepted follows in both directions fixes bookwyrm-social#2635
@bookwyrm-social/code-review this can be checked with a Mastodon account, but I probably should add one or two tests? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! I wanted to test this on my instance. In the process, found one tiny error, below, and then have a comment about UX.
- rationalise activitypub.Reject and fix model being undefined - fix not being able to follow users from followers page: 'delete' option now in user_options dropdown - revert bookwyrm.js - fix delete_follow_request deleting instead of rejecting - add user id to 'remove-follow' path
@dato better? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dato better?
Works beautifully! Tested against Mastodon, and BookWyrm as well.
verbs.Reject
to process "reject" activities for previously accepted follows in both directionsTo explain the second point - previously when e.g. a Mastodon user deleted a follow by a BookWyrm user, BookWyrm errored out when received the
reject
activity so the Mastodon user was still listed in "following". This PR fixes this so that users are removed from the "followers" list of the user deleting the follow, and also deleted from the "following" list of the target user.fixes #2635