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

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

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

Loading…
Cancel
Save