about summary refs log tree commit diff
path: root/app/workers/activitypub/processing_worker.rb
blob: bb9adf64bde9cccb11c293900b68d7acf1a5eb8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class ActivityPub::ProcessingWorker
  include Sidekiq::Worker

  sidekiq_options backtrace: true

  def perform(account_id, body)
    ActivityPub::ProcessCollectionService.new.call(body, Account.find(account_id))
  end
end