mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-09-12 13:16:55 +00:00
* Do not error out on unsalvageable errors in FetchRepliesService Fixes #10152 * Fix FetchRepliesWorker erroring out on deleted statuses
15 lines
360 B
Ruby
15 lines
360 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)
|
|
rescue ActiveRecord::RecordNotFound
|
|
true
|
|
end
|
|
end
|