Skip to content
Extraits de code Groupes Projets
Valider d5459007 rédigé par Raphael's avatar Raphael
Parcourir les fichiers

Delete comments of a deleted person, until we implement tombstoning

parent 9d091bbf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -181,6 +181,7 @@ class Person < ActiveRecord::Base ...@@ -181,6 +181,7 @@ class Person < ActiveRecord::Base
private private
def remove_all_traces def remove_all_traces
Post.where(:person_id => id).delete_all Post.where(:person_id => id).delete_all
Comment.where(:person_id => id).delete_all
Contact.where(:person_id => id).delete_all Contact.where(:person_id => id).delete_all
Notification.where(:actor_id => id).delete_all Notification.where(:actor_id => id).delete_all
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter