Do not process outgoing mentions to suspended accounts (#8272)

lolsob-rspec
ThibG 2018-08-18 19:42:13 +02:00 committed by Eugen Rochko
parent f5f3f3a5d7
commit 8f788fe92a
1 changed files with 1 additions and 1 deletions

View 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)