mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-20 01:31:38 +09:00
13 lines
313 B
Ruby
13 lines
313 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class ActivityPub::FetchRepliesWorker
|
||
|
include Sidekiq::Worker
|
||
|
include ExponentialBackoff
|
||
|
|
||
|
sidekiq_options queue: 'pull', retry: 3
|
||
|
|
||
|
def perform(parent_status_id, replies_uri)
|
||
|
ActivityPub::FetchRepliesService.new.call(Status.find(parent_status_id), replies_uri)
|
||
|
end
|
||
|
end
|