2018-03-04 08:19:11 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ActivityPub::SynchronizeFeaturedCollectionWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2020-03-31 19:59:03 +00:00
|
|
|
sidekiq_options queue: 'pull', lock: :until_executed
|
2018-03-04 08:19:11 +00:00
|
|
|
|
|
|
|
def perform(account_id)
|
|
|
|
ActivityPub::FetchFeaturedCollectionService.new.call(Account.find(account_id))
|
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|