about summary refs log tree commit diff
path: root/app/workers/activitypub/processing_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/activitypub/processing_worker.rb')
-rw-r--r--app/workers/activitypub/processing_worker.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/workers/activitypub/processing_worker.rb b/app/workers/activitypub/processing_worker.rb
new file mode 100644
index 000000000..7656ab56a
--- /dev/null
+++ b/app/workers/activitypub/processing_worker.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class ActivityPub::ProcessingWorker
+  include Sidekiq::Worker
+
+  sidekiq_options backtrace: true
+
+  def perform(account_id, body)
+    ProcessCollectionService.new.call(body, Account.find(account_id))
+  end
+end