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

lolsob-rspec
Claire 2022-09-20 23:49:00 +02:00 committed by GitHub
parent b8853ddcb9
commit 4be7a4764e
1 changed files with 1 additions and 1 deletions

View File

@ -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