mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-09 01:04:08 +00:00
a8a3e86216
* 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
|