5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 18:56:22 +00:00

fix: asegurarse que todos los registros existan

This commit is contained in:
f 2024-02-21 16:42:14 -03:00
parent f8f0eb9d3c
commit a4133c6001
No known key found for this signature in database

View file

@ -24,12 +24,10 @@ module Api
ActivityPub.transaction do
# Crea todos los registros necesarios y actualiza el estado
#
# 1. Actor
# 2. Instance
# 3. Object
# 4. ActivityPub
# 5. Activity
actor.present?
instance.present?
object.present?
activity_pub.present?
activity.update_activity_pub_state!
end
rescue ActiveRecord::RecordInvalid => e