]> cat aescling's git repositories - mastodon.git/commitdiff
Check reblogged status for blocked/muted mentions (#7957)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 5 Jul 2018 16:43:37 +0000 (18:43 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Jul 2018 16:43:37 +0000 (18:43 +0200)
app/lib/feed_manager.rb

index ee9185d34400130466cd11454be806eca5d5d4bf..efe7e2b7bb021ffaa2938e062ae312b629b37f74 100644 (file)
@@ -157,7 +157,11 @@ class FeedManager
 
     check_for_blocks = status.mentions.pluck(:account_id)
     check_for_blocks.concat([status.account_id])
-    check_for_blocks.concat([status.reblog.account_id]) if status.reblog?
+
+    if status.reblog?
+      check_for_blocks.concat([status.reblog.account_id])
+      check_for_blocks.concat(status.reblog.mentions.pluck(:account_id))
+    end
 
     return true if blocks_or_mutes?(receiver_id, check_for_blocks, :home)