Fix irrelevant accounts being passed through silenced_account_ids to DistributionWorker (#37589)

This commit is contained in:
Claire authored and GitHub committed 2026-01-26 09:26:19 +00:00
1 parent 7022572011
commit 1b748eaeb0
1 file changed
+1 -1
+1 -1
View File
@@ -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