mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 20:15:10 +01: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
|