mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 23:11:49 +00:00
Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
60270ae14a
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ module ModerationConcern
|
|||
end
|
||||
|
||||
def remote_flag_params(model)
|
||||
{ remote_flag_attributes: { id: model.remote_flag_id, message: ''.dup } }.tap do |p|
|
||||
remote_flag = ActivityPub::RemoteFlag.find_by(actor_id: model.actor_id)
|
||||
|
||||
{ remote_flag_attributes: { id: remote_flag&.id, message: ''.dup } }.tap do |p|
|
||||
p[:remote_flag_attributes][:site_id] = model.site_id
|
||||
p[:remote_flag_attributes][:actor_id] = model.actor_id
|
||||
|
||||
|
|
Loading…
Reference in a new issue