mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:26:22 +00:00
fix: cargar el objeto por id y modificarlo
closes #15775 closes #15773 closes #15772 closes #15771 closes #15770 closes #15767 closes #15766 closes #15765 closes #15764
This commit is contained in:
parent
1ef7996ce9
commit
eafa6fad37
1 changed files with 2 additions and 3 deletions
|
@ -30,9 +30,8 @@ class ActivityPub
|
|||
current_type = object.type
|
||||
content = FastJsonparser.parse(response.body)
|
||||
|
||||
object.with_lock do
|
||||
object.update!(content: content, type: ActivityPub::Object.type_from(content).name)
|
||||
end
|
||||
# Modificar atómicamente
|
||||
::ActivityPub::Object.lock.find(object_id).update!(content: content, type: ActivityPub::Object.type_from(content).name)
|
||||
|
||||
object = ::ActivityPub::Object.find(object_id)
|
||||
# Actualiza la mención
|
||||
|
|
Loading…
Reference in a new issue