about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-08-18 19:42:13 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-08-18 19:42:13 +0200
commitabc5548cca42dd87926c7c3d4b42b59a7e306eb8 (patch)
treefeb9ae185fd638cb5228d277b03333c7d0b02492
parent7a0f781aa9aad505dbde6a2bf3aa5048638c2de0 (diff)
Do not process outgoing mentions to suspended accounts (#8272)
-rw-r--r--app/services/process_mentions_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_mentions_service.rb b/app/services/process_mentions_service.rb
index 2ed6698cf..b4641c4b4 100644
--- a/app/services/process_mentions_service.rb
+++ b/app/services/process_mentions_service.rb
@@ -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)