]> cat aescling's git repositories - mastodon.git/commitdiff
Fix undesired delivering of private toot to remote accounts that follow author
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 5 Jan 2017 02:17:23 +0000 (03:17 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 5 Jan 2017 02:17:23 +0000 (03:17 +0100)
app/services/process_mentions_service.rb

index ee42a5df24e69c77891d2ab4cd6100e55b6ea36e..72568e702da4839921fece7631a85c7d5552e724 100644 (file)
@@ -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)