mirror of
https://0xacab.org/sutty/sutty
synced 2024-05-19 04:50:48 +00:00
fix: reusar el reporto remoto #15648
This commit is contained in:
parent
7b87aaa93d
commit
9dc0ed7684
|
@ -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