-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Prevent silenced local users from notifying remote users not following them #10575
Prevent silenced local users from notifying remote users not following them #10575
Conversation
4f209f1
to
4f8623d
Compare
…g them This is an attempt to extend the local restrictions of silenced users to the federation.
fe7a713
to
45fe442
Compare
When a silenced local users, mentionned users that do not follow (or request to follow) them won't appear in the |
I haven't actually tested it yet. |
# Only notify followers if the account is locally silenced | ||
account_ids = status.active_mentions.pluck(:account_id) | ||
cc.concat(status.account.followers.where(id: account_ids).map { |account| uri_for(account) }) | ||
cc.concat(FollowRequest.where(target_account_id: status.account_id, account_id: account_ids).map { |request| uri_for(request.account) }) |
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.
what's up with this line?
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.
I'm not sure what you mean. It's to allow silenced local users to mention (and notify) remote users who have requested to follow them.
This is the same logic as in NotifyService
for local notifications.
…g them (mastodon#10575) * Prevent silenced local users from notifying remote users not following them This is an attempt to extend the local restrictions of silenced users to the federation. * Add tests * Add tests for making sure private status don't get sent over OStatus
…g them (mastodon#10575) * Prevent silenced local users from notifying remote users not following them This is an attempt to extend the local restrictions of silenced users to the federation. * Add tests * Add tests for making sure private status don't get sent over OStatus
…g them (mastodon#10575) * Prevent silenced local users from notifying remote users not following them This is an attempt to extend the local restrictions of silenced users to the federation. * Add tests * Add tests for making sure private status don't get sent over OStatus
This is an attempt to extend the local restrictions of silenced users to the
federation.