Federate creation of collections (#37618)

This commit is contained in:
David Roetzel
2026-01-27 11:52:54 +01:00
committed by GitHub
parent aa347708f5
commit 1d4c2c5670
4 changed files with 61 additions and 4 deletions

View File

@@ -29,6 +29,12 @@ RSpec.describe CreateCollectionService do
expect(collection).to be_local
end
it 'federates an `Add` activity', feature: :collections_federation do
subject.call(base_params, author)
expect(ActivityPub::AccountRawDistributionWorker).to have_enqueued_sidekiq_job
end
context 'when given account ids' do
let(:accounts) do
Fabricate.times(2, :account)