From: ThibG Date: Sat, 18 Aug 2018 17:42:13 +0000 (+0200) Subject: Do not process outgoing mentions to suspended accounts (#8272) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=abc5548cca42dd87926c7c3d4b42b59a7e306eb8;p=mastodon.git Do not process outgoing mentions to suspended accounts (#8272) --- 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)