Don't import if ES is not enabled

This commit is contained in:
Vyr Cossont 2023-01-30 21:18:15 -08:00
parent d1797b437f
commit b342b12dbd
3 changed files with 3 additions and 3 deletions

View file

@ -85,7 +85,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
attach_tags(@status) attach_tags(@status)
end end
StatusesIndex.import! @status StatusesIndex.import! @status if Chewy.enabled?
resolve_thread(@status) resolve_thread(@status)
fetch_replies(@status) fetch_replies(@status)

View file

@ -74,7 +74,7 @@ class ActivityPub::ProcessAccountService < BaseService
@account.save_with_optional_media! @account.save_with_optional_media!
AccountsIndex.import! @account AccountsIndex.import! @account if Chewy.enabled?
end end
def set_immediate_protocol_attributes! def set_immediate_protocol_attributes!

View file

@ -52,7 +52,7 @@ class ActivityPub::ProcessStatusUpdateService < BaseService
broadcast_updates! broadcast_updates!
end end
StatusesIndex.import! @status StatusesIndex.import! @status if Chewy.enabled?
forward_activity! if significant_changes? && @status_parser.edited_at > last_edit_date forward_activity! if significant_changes? && @status_parser.edited_at > last_edit_date
end end