5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 20:26: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 ActivityPub.transaction do
# Crea todos los registros necesarios y actualiza el estado # Crea todos los registros necesarios y actualiza el estado
# actor.present?
# 1. Actor instance.present?
# 2. Instance object.present?
# 3. Object activity_pub.present?
# 4. ActivityPub
# 5. Activity
activity.update_activity_pub_state! activity.update_activity_pub_state!
end end
rescue ActiveRecord::RecordInvalid => e rescue ActiveRecord::RecordInvalid => e