1
0
Fork 0
forked from gitea/nas

Fix activitypub group reboot not working

This commit is contained in:
KMY 2023-03-14 12:53:33 +09:00
parent 05211ac206
commit 615bfa85bb
2 changed files with 5 additions and 5 deletions

View file

@ -89,6 +89,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
fetch_replies(@status) fetch_replies(@status)
distribute distribute
forward_for_reply forward_for_reply
join_group!
end end
def distribute def distribute
@ -424,4 +425,8 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
poll.reload poll.reload
retry retry
end end
def join_group!
GroupReblogService.new.call(@status)
end
end end

View file

@ -182,7 +182,6 @@ class ActivityPub::ProcessStatusUpdateService < BaseService
update_tags! update_tags!
update_mentions! update_mentions!
update_emojis! update_emojis!
join_group!
end end
def update_tags! 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? Mention.where(id: removed_mentions.map(&:id)).update_all(silent: true) unless removed_mentions.empty?
end end
def join_group!
GroupReblogService.call(@status)
end
def update_emojis! def update_emojis!
return if skip_download? return if skip_download?