From 1b748eaeb027e0b8639abeccc14d4f352e0debce Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 26 Jan 2026 10:26:19 +0100 Subject: [PATCH] Fix irrelevant accounts being passed through `silenced_account_ids` to `DistributionWorker` (#37589) --- app/lib/activitypub/activity/create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index a7d2be35ed..24ea62510b 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -144,7 +144,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity # Accounts that are tagged but are not in the audience are not # supposed to be notified explicitly - @silenced_account_ids = @mentions.map(&:account_id) - accounts_in_audience.map(&:id) + @silenced_account_ids = @mentions.filter_map { |mention| mention.account_id if mention.account.local? } - accounts_in_audience.map(&:id) end def postprocess_audience_and_deliver