mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-24 19:37:26 +00:00
Add digest re-check before removing followers in synchronization mechanism (#34273)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user