Add collection reach finder (#39346)

This commit is contained in:
David Roetzel authored and GitHub committed 2026-06-09 14:22:21 +00:00
1 parent 4ee893461d
commit 200fda1cdc
19 files changed
+98 -20

No files matched your search

@@ -0,0 +1,15 @@
# frozen_string_literal: true
class ActivityPub::CollectionRawDistributionWorker < ActivityPub::RawDistributionWorker
def perform(json, collection_id, exclude_inboxes = [])
@collection = Collection.find(collection_id)
super(json, @collection.account_id, exclude_inboxes)
end
private
def inboxes
@inboxes ||= CollectionReachFinder.new(@collection).inboxes
end
end