Delete comments of a deleted person, until we implement tombstoning
This commit is contained in:
parent
9d091bbf6a
commit
d545900759
1 changed files with 1 additions and 0 deletions
|
|
@ -181,6 +181,7 @@ class Person < ActiveRecord::Base
|
|||
private
|
||||
def remove_all_traces
|
||||
Post.where(:person_id => id).delete_all
|
||||
Comment.where(:person_id => id).delete_all
|
||||
Contact.where(:person_id => id).delete_all
|
||||
Notification.where(:actor_id => id).delete_all
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue