mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 19:26:21 +00:00
fix: todavía no se puede volver de una actividad rechazada
This commit is contained in:
parent
ccd3df2038
commit
0e2a4c4288
1 changed files with 2 additions and 2 deletions
|
@ -61,14 +61,14 @@ class ActivityPub < ApplicationRecord
|
|||
# Si un objeto previamente aprobado fue actualizado, volvemos a
|
||||
# pausarlo.
|
||||
event :pause do
|
||||
transitions from: %i[approved rejected], to: :paused
|
||||
transitions from: %i[approved], to: :paused
|
||||
end
|
||||
|
||||
# La actividad se aprueba, informándole a la Social Inbox que está
|
||||
# aprobada. También recibimos la aprobación via
|
||||
# webhook a modo de confirmación.
|
||||
event :approve do
|
||||
transitions from: %i[paused rejected], to: :approved
|
||||
transitions from: %i[paused], to: :approved
|
||||
|
||||
before do
|
||||
raise AASM::InvalidTransition unless
|
||||
|
|
Loading…
Reference in a new issue