From 79b5520e770dcf40fafcc614f2e11515b0804cf0 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 14 Jul 2012 20:28:17 -0700 Subject: [PATCH] sql errors on profile page --- mod/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/profile.php b/mod/profile.php index 78fb5487cd..cc333d36ec 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -206,7 +206,7 @@ function profile_content(&$a, $update = 0) { FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND (`item`.`deleted` = 0 OR item.verb = '" . ACTIVITY_LIKE ."' OR item.verb = '" . ACTIVITY_DISLIKE . "') - WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0 + AND `item`.`deleted` = 0 and `item`.`moderated` = 0 and `item`.`unseen` = 1 AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 AND `item`.`wall` = 1