From ac891d9dcecb305965baffdb88ef83ff7105b0d6 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Sun, 18 Dec 2022 16:34:07 -0800 Subject: [PATCH] Don't update status inside a lock, it's just queueing anyway --- app/services/activitypub/process_status_update_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/activitypub/process_status_update_service.rb b/app/services/activitypub/process_status_update_service.rb index 7cc307d072..eecd942d36 100644 --- a/app/services/activitypub/process_status_update_service.rb +++ b/app/services/activitypub/process_status_update_service.rb @@ -50,10 +50,10 @@ class ActivityPub::ProcessStatusUpdateService < BaseService reset_preview_card! broadcast_updates! - - StatusesIndex.import! @status end + StatusesIndex.import! @status + forward_activity! if significant_changes? && @status_parser.edited_at > last_edit_date end