mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 11:16:23 +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:
parent
029d4e7c97
commit
d33e7b37a1
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue