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.
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.