Skip to content
Snippets Groups Projects
Commit abc5548c authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

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

parent 7a0f781a
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment