From 615bfa85bb870ba5cb6ac0301fab816e87f8154e Mon Sep 17 00:00:00 2001 From: KMY Date: Tue, 14 Mar 2023 12:53:33 +0900 Subject: [PATCH] Fix activitypub group reboot not working --- app/lib/activitypub/activity/create.rb | 5 +++++ app/services/activitypub/process_status_update_service.rb | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index e2355bfbcc..95f558f15e 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -89,6 +89,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity fetch_replies(@status) distribute forward_for_reply + join_group! end def distribute @@ -424,4 +425,8 @@ class ActivityPub::Activity::Create < ActivityPub::Activity poll.reload retry end + + def join_group! + GroupReblogService.new.call(@status) + end end diff --git a/app/services/activitypub/process_status_update_service.rb b/app/services/activitypub/process_status_update_service.rb index b89a834631..ac7372f745 100644 --- a/app/services/activitypub/process_status_update_service.rb +++ b/app/services/activitypub/process_status_update_service.rb @@ -182,7 +182,6 @@ class ActivityPub::ProcessStatusUpdateService < BaseService update_tags! update_mentions! update_emojis! - join_group! end def update_tags! @@ -219,10 +218,6 @@ class ActivityPub::ProcessStatusUpdateService < BaseService Mention.where(id: removed_mentions.map(&:id)).update_all(silent: true) unless removed_mentions.empty? end - def join_group! - GroupReblogService.call(@status) - end - def update_emojis! return if skip_download?