mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 16:44:04 -05:00
Fix ProcessMentionService swallowing unprocessed mentions to unconfirmed/unapproved users (#19191)
This commit is contained in:
parent
1145dbd327
commit
7b38cb88ca
@ -38,7 +38,7 @@ class ProcessMentionsService < BaseService
|
|||||||
mentioned_account = Account.find_remote(username, domain)
|
mentioned_account = Account.find_remote(username, domain)
|
||||||
|
|
||||||
# Unapproved and unconfirmed accounts should not be mentionable
|
# 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,
|
# If the account cannot be found or isn't the right protocol,
|
||||||
# first try to resolve it
|
# first try to resolve it
|
||||||
|
Loading…
Reference in New Issue
Block a user