]> cat aescling's git repositories - mastodon.git/commitdiff
Do not process outgoing mentions to suspended accounts (#8272)
authorThibG <thib@sitedethib.com>
Sat, 18 Aug 2018 17:42:13 +0000 (19:42 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 18 Aug 2018 17:42:13 +0000 (19:42 +0200)
app/services/process_mentions_service.rb

index 2ed6698cf28eba366b800e3055b744aba46bc697..b4641c4b4aba3d204583044434b83f8494d96644 100644 (file)
@@ -25,7 +25,7 @@ class ProcessMentionsService < BaseService
         end
       end
 
-      next match if mention_undeliverable?(mentioned_account)
+      next match if mention_undeliverable?(mentioned_account) || mentioned_account&.suspended
 
       mentions << mentioned_account.mentions.where(status: status).first_or_create(status: status)