diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-03 01:11:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-03 01:11:23 +0200 |
commit | a187dcefa1e0604e55eaff97a3c6403157528cdf (patch) | |
tree | 0430607dc59edfb7bb96273fe0bff3d00e86529d /app/workers | |
parent | 5d170587e3b6c1a3b3ebe0910b62a4c526e2900d (diff) |
Instantly upgrade account to ActivityPub if we receive ActivityPub payload (#4766)
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/resolve_remote_account_worker.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/workers/resolve_remote_account_worker.rb b/app/workers/resolve_remote_account_worker.rb new file mode 100644 index 000000000..5dd84ccb6 --- /dev/null +++ b/app/workers/resolve_remote_account_worker.rb @@ -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 |