diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index daf9fcf8e3..344f24b521 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -85,7 +85,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity attach_tags(@status) end - StatusesIndex.import! @status + StatusesIndex.import! @status if Chewy.enabled? resolve_thread(@status) fetch_replies(@status) diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb index 1c95b7055c..d536486f02 100644 --- a/app/services/activitypub/process_account_service.rb +++ b/app/services/activitypub/process_account_service.rb @@ -74,7 +74,7 @@ class ActivityPub::ProcessAccountService < BaseService @account.save_with_optional_media! - AccountsIndex.import! @account + AccountsIndex.import! @account if Chewy.enabled? end def set_immediate_protocol_attributes! diff --git a/app/services/activitypub/process_status_update_service.rb b/app/services/activitypub/process_status_update_service.rb index eecd942d36..fb16114f92 100644 --- a/app/services/activitypub/process_status_update_service.rb +++ b/app/services/activitypub/process_status_update_service.rb @@ -52,7 +52,7 @@ class ActivityPub::ProcessStatusUpdateService < BaseService broadcast_updates! end - StatusesIndex.import! @status + StatusesIndex.import! @status if Chewy.enabled? forward_activity! if significant_changes? && @status_parser.edited_at > last_edit_date end