]> cat aescling's git repositories - mastodon.git/commitdiff
Fix ProcessMentionService swallowing unprocessed mentions to unconfirmed/unapproved...
authorClaire <claire.github-309c@sitedethib.com>
Tue, 20 Sep 2022 21:49:00 +0000 (23:49 +0200)
committeraescling <aescling+gitlab@cat.family>
Thu, 17 Nov 2022 03:03:48 +0000 (22:03 -0500)
app/services/process_mentions_service.rb

index 8c63b611d36e218ad1ccaae71716ea50fc9e3d17..c9c158af1c61959e50a426d5052bd708b76a55e4 100644 (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