Add digest re-check before removing followers in synchronization mechanism (#34273)

This commit is contained in:
Claire
2025-08-27 14:12:55 +02:00
committed by GitHub
parent 66f5ad42e2
commit c00ed9c913
5 changed files with 145 additions and 7 deletions

View File

@@ -15,7 +15,13 @@ RSpec.describe ActivityPub::FollowersSynchronizationWorker do
it 'sends the status to the service' do
worker.perform(account.id, url)
expect(service).to have_received(:call).with(account, url)
expect(service).to have_received(:call).with(account, url, nil)
end
it 'sends the status to the service with the passed digest' do
worker.perform(account.id, url, 'digest-123')
expect(service).to have_received(:call).with(account, url, 'digest-123')
end
it 'returns nil for non-existent record' do