Skip to content
Snippets Groups Projects
Commit 251b0429 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix undesired delivering of private toot to remote accounts that follow author

parent 98729d50
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment