mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-18 16:26:20 +00:00
docs: orden en que se crean los registros
This commit is contained in:
parent
b477487b65
commit
732012e14b
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ module Api
|
|||
|
||||
ActivityPub.transaction do
|
||||
# Crea todos los registros necesarios y actualiza el estado
|
||||
#
|
||||
# 1. Actor
|
||||
# 2. Instance
|
||||
# 3. Object
|
||||
# 4. ActivityPub
|
||||
# 5. Activity
|
||||
activity.update_activity_pub_state!
|
||||
end
|
||||
rescue ActiveRecord::RecordInvalid => e
|
||||
|
|
Loading…
Reference in a new issue