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

This commit is contained in:
Claire
2026-01-26 10:26:19 +01:00
committed by GitHub
parent 7022572011
commit 1b748eaeb0

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