5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 07:26:22 +00:00

fix: lock

closes #15740

closes #15741

closes #15742

closes #15743

closes #15744

closes #15745

closes #15746

closes #15747

closes #15748

closes #15749

closes #15750

closes #15751

closes #15752

closes #15753

closes #15754

closes #15755

closes #15756

closes #15757

closes #15758

closes #15759
This commit is contained in:
f 2024-03-19 13:16:28 -03:00
parent 029d4e7c97
commit d33e7b37a1
No known key found for this signature in database

View file

@ -30,7 +30,9 @@ class ActivityPub
current_type = object.type
content = FastJsonparser.parse(response.body)
object.lock.update!(content: content, type: ActivityPub::Object.type_from(content).name)
object.with_lock do
object.update!(content: content, type: ActivityPub::Object.type_from(content).name)
end
object = ::ActivityPub::Object.find(object_id)
# Actualiza la mención