Instantly upgrade account to ActivityPub if we receive ActivityPub payload (#4766)
This commit is contained in:
11
app/workers/resolve_remote_account_worker.rb
Normal file
11
app/workers/resolve_remote_account_worker.rb
Normal file
@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ResolveRemoteAccountWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
sidekiq_options queue: 'pull', unique: :until_executed
|
||||
|
||||
def perform(uri)
|
||||
ResolveRemoteAccountService.new.call(uri)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user