Private posts mentioning non-followers should not notify them, neither locally nor via Salmon
This commit is contained in:
parent
9d42bff285
commit
f729cfc881
2 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,8 @@ class ProcessMentionsService < BaseService
|
|||
status.mentions.each do |mention|
|
||||
mentioned_account = mention.account
|
||||
|
||||
next if status.private_visibility? && !mentioned_account.following?(status.account)
|
||||
|
||||
if mentioned_account.local?
|
||||
NotifyService.new.call(mentioned_account, mention)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue