Delete comments of a deleted person, until we implement tombstoning

This commit is contained in:
Raphael 2011-01-28 17:34:02 -08:00
parent 9d091bbf6a
commit d545900759

View file

@ -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