Skip to content
Snippets Groups Projects
Unverified Commit 7b38cb88 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix ProcessMentionService swallowing unprocessed mentions to unconfirmed/unapproved users (#19191)

parent 1145dbd3
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ class ProcessMentionsService < BaseService
mentioned_account = Account.find_remote(username, domain)
# Unapproved and unconfirmed accounts should not be mentionable
next if mentioned_account&.local? && !(mentioned_account.user_confirmed? && mentioned_account.user_approved?)
next match if mentioned_account&.local? && !(mentioned_account.user_confirmed? && mentioned_account.user_approved?)
# If the account cannot be found or isn't the right protocol,
# first try to resolve it
......
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