mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 20:46:21 +00:00
feat: eliminar todos los comentarios de une actore eliminade
This commit is contained in:
parent
e783390747
commit
20c6d6af50
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue