aboutsummaryrefslogtreecommitdiff
path: root/app/workers/activitypub/synchronize_featured_collection_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/activitypub/synchronize_featured_collection_worker.rb')
-rw-r--r--app/workers/activitypub/synchronize_featured_collection_worker.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/workers/activitypub/synchronize_featured_collection_worker.rb b/app/workers/activitypub/synchronize_featured_collection_worker.rb
index 7a0898e89..f67d693cb 100644
--- a/app/workers/activitypub/synchronize_featured_collection_worker.rb
+++ b/app/workers/activitypub/synchronize_featured_collection_worker.rb
@@ -5,8 +5,10 @@ class ActivityPub::SynchronizeFeaturedCollectionWorker
sidekiq_options queue: 'pull', lock: :until_executed
- def perform(account_id)
- ActivityPub::FetchFeaturedCollectionService.new.call(Account.find(account_id))
+ def perform(account_id, options = {})
+ options = { note: true, hashtag: false }.deep_merge(options.deep_symbolize_keys)
+
+ ActivityPub::FetchFeaturedCollectionService.new.call(Account.find(account_id), **options)
rescue ActiveRecord::RecordNotFound
true
end