5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 14:06:21 +00:00

feat: eliminar todos los comentarios de une actore eliminade

This commit is contained in:
f 2024-03-12 14:30:43 -03:00
parent e783390747
commit 20c6d6af50
No known key found for this signature in database

View file

@ -67,6 +67,10 @@ class ActorModeration < ApplicationRecord
# mostrarlo y todas sus actividades.
event :remove do
transitions to: :removed
before do
site.activity_pubs.where(actor_id: self.actor_id).remove_all!
end
end
end