Add group account support
This commit is contained in:
parent
b08cc0eaea
commit
05211ac206
11 changed files with 64 additions and 4 deletions
|
@ -182,6 +182,7 @@ class ActivityPub::ProcessStatusUpdateService < BaseService
|
|||
update_tags!
|
||||
update_mentions!
|
||||
update_emojis!
|
||||
join_group!
|
||||
end
|
||||
|
||||
def update_tags!
|
||||
|
@ -218,6 +219,10 @@ 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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue