This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2022-10-20 03:15:52 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ActivityPub::SynchronizeFeaturedTagsCollectionWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2023-10-03 04:09:00 -04:00
|
|
|
sidekiq_options queue: 'pull', lock: :until_executed, lock_ttl: 1.day.to_i
|
2022-10-20 03:15:52 -04:00
|
|
|
|
|
|
|
def perform(account_id, url)
|
|
|
|
ActivityPub::FetchFeaturedTagsCollectionService.new.call(Account.find(account_id), url)
|
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|