Fix irrelevant accounts being passed through silenced_account_ids to DistributionWorker (#37589)
This commit is contained in:
parent
7022572011
commit
1b748eaeb0
@ -144,7 +144,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
|||||||
|
|
||||||
# Accounts that are tagged but are not in the audience are not
|
# Accounts that are tagged but are not in the audience are not
|
||||||
# supposed to be notified explicitly
|
# 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
|
end
|
||||||
|
|
||||||
def postprocess_audience_and_deliver
|
def postprocess_audience_and_deliver
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user