Don't import if ES is not enabled

main
Vyr Cossont 2 years ago
parent d1797b437f
commit b342b12dbd

@ -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)

@ -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!

@ -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

Loading…
Cancel
Save