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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 145 additions and 7 deletions

View file

@ -5,10 +5,10 @@ class ActivityPub::FollowersSynchronizationWorker
sidekiq_options queue: 'push', lock: :until_executed
def perform(account_id, url)
def perform(account_id, url, expected_digest = nil)
@account = Account.find_by(id: account_id)
return true if @account.nil?
ActivityPub::SynchronizeFollowersService.new.call(@account, url)
ActivityPub::SynchronizeFollowersService.new.call(@account, url, expected_digest)
end
end