mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 22:26:23 +00:00
fix: deleted es un método reservado
This commit is contained in:
parent
d98f893a71
commit
39bbc3a2bd
1 changed files with 3 additions and 3 deletions
|
@ -30,13 +30,13 @@ class ActivityPub < ApplicationRecord
|
|||
# Le usuarie reportó el objeto
|
||||
state :reported
|
||||
# Le actore eliminó el objeto
|
||||
state :deleted
|
||||
state :removed
|
||||
|
||||
# Recibir una acción de eliminación, eliminar el contenido de la
|
||||
# base de datos. Esto elimina el contenido para todos los sitios
|
||||
# porque estamos respetando lo que pidió le actore.
|
||||
event :delete do
|
||||
transitions to: :deleted
|
||||
event :remove do
|
||||
transitions to: :removed
|
||||
|
||||
after do
|
||||
object.update(object: {})
|
||||
|
|
Loading…
Reference in a new issue