mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 20:46:21 +00:00
fix: asegurarse que todos los registros existan
This commit is contained in:
parent
f8f0eb9d3c
commit
a4133c6001
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue