mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-03-05 00:10:54 -08:00
Add digest re-check before removing followers in synchronization mechanism (#34273)
This commit is contained in:
parent
66f5ad42e2
commit
c00ed9c913
5 changed files with 145 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue