mirror of
https://github.com/funamitech/mastodon
synced 2024-12-15 07:09:03 +09:00
0c9eac80d8
* Add a limit to how many posts can get fetched as a result of a single request * Add tests * Always pass `request_id` when processing `Announce` activities --------- Co-authored-by: nametoolong <nametoolong@users.noreply.github.com>
13 lines
282 B
Ruby
13 lines
282 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FetchReplyWorker
|
|
include Sidekiq::Worker
|
|
include ExponentialBackoff
|
|
|
|
sidekiq_options queue: 'pull', retry: 3
|
|
|
|
def perform(child_url, options = {})
|
|
FetchRemoteStatusService.new.call(child_url, **options.deep_symbolize_keys)
|
|
end
|
|
end
|