www/adiumxtras.com 45:58327051c635: Remove reports about users t...
commits at adium.im
commits at adium.im
Fri Feb 20 22:49:09 UTC 2015
details: http://hg.adium.im/www/adiumxtras.com/rev/58327051c635
revision: 45:58327051c635
branch: adiumxtras.com
author: Thijs Alkemade <me at thijsalkema.de>
date: Fri Feb 20 23:49:00 2015 +0100
Remove reports about users that are burninated.
diffs (11 lines):
diff -r be2a8d9c2f71 -r 58327051c635 users.php
--- a/users.php Fri Feb 20 23:37:23 2015 +0100
+++ b/users.php Fri Feb 20 23:49:00 2015 +0100
@@ -323,6 +323,7 @@
// Oh, for want of a relational database with cascade and wonderfulness
$sql->query("DELETE FROM users WHERE user_id='%d'", $user_to_delete);
+ $sql->query("DELETE FROM reported WHERE comment_id IN (SELECT comment_id FROM comments WHERE user_id='%d')", $user_to_delete);
$sql->query("DELETE FROM comments WHERE user_id='%d'", $user_to_delete);
$sql->query("DELETE FROM xtras WHERE user_id='%d'", $user_to_delete);
More information about the commits
mailing list