Fix activitypub group reboot not working
This commit is contained in:
parent
05211ac206
commit
615bfa85bb
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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?
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue