mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix undesired delivering of private toot to remote accounts that follow author
This commit is contained in:
parent
98729d50c8
commit
251b04298e
@ -28,7 +28,7 @@ class ProcessMentionsService < BaseService
|
||||
status.mentions.each do |mention|
|
||||
mentioned_account = mention.account
|
||||
|
||||
next if status.private_visibility? && !mentioned_account.following?(status.account)
|
||||
next if status.private_visibility? && (!mentioned_account.following?(status.account) || !mentioned_account.local?)
|
||||
|
||||
if mentioned_account.local?
|
||||
NotifyService.new.call(mentioned_account, mention)
|
||||
|
Loading…
Reference in New Issue
Block a user