5
0
Fork 0
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:
f 2024-03-18 12:48:09 -03:00
parent 7b87aaa93d
commit 9dc0ed7684
No known key found for this signature in database

View file

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