mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 18:46:22 +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
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue