5
0
Fork 0
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:
f 2024-02-21 15:44:41 -03:00
parent d98f893a71
commit 39bbc3a2bd
No known key found for this signature in database

View file

@ -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: {})