Only persist a collection item's approval URI once it is verified (#38255)

This commit is contained in:
David Roetzel authored and GitHub committed 2026-03-17 15:14:30 +00:00
1 parent b9d25bde3e
commit 96c93ba835
8 files changed
+24 -23

No files matched your search

@@ -12,13 +12,13 @@ RSpec.describe ActivityPub::VerifyFeaturedItemWorker do
before { stub_service }
it 'sends the status to the service' do
worker.perform(collection_item.id)
worker.perform(collection_item.id, 'https://example.com/authorizations/1')
expect(service).to have_received(:call).with(collection_item)
expect(service).to have_received(:call).with(collection_item, 'https://example.com/authorizations/1')
end
it 'returns nil for non-existent record' do
result = worker.perform(123_123_123)
result = worker.perform(123_123_123, 'https://example.com/authorizations/1')
expect(result).to be_nil
end