5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 21:36:22 +00:00

fix: prevenir deadlocks

closes #15555

closes #15556

closes #15557

closes #15558

closes #15559

closes #15560
This commit is contained in:
f 2024-03-13 17:02:01 -03:00
parent 79e6ce7872
commit 97653d98b6
No known key found for this signature in database

View file

@ -13,6 +13,7 @@ class ActivityPub
# lo haría la Social Inbox por nosotres. # lo haría la Social Inbox por nosotres.
# @see {https://docs.joinmastodon.org/spec/security/#ld} # @see {https://docs.joinmastodon.org/spec/security/#ld}
def update_activity_pub_state! def update_activity_pub_state!
ActiveRecord::Base.connection_pool.with_connection do
ActivityPub.transaction do ActivityPub.transaction do
object = ActivityPub::Object.find_by(uri: ActivityPub.uri_from_object(content['object'])) object = ActivityPub::Object.find_by(uri: ActivityPub.uri_from_object(content['object']))
@ -34,3 +35,4 @@ class ActivityPub
end end
end end
end end
end