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

View file

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