From abc5548cca42dd87926c7c3d4b42b59a7e306eb8 Mon Sep 17 00:00:00 2001 From: ThibG Date: Sat, 18 Aug 2018 19:42:13 +0200 Subject: Do not process outgoing mentions to suspended accounts (#8272) --- app/services/process_mentions_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') 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) -- cgit