From 816db4396a65942248462e2c61b784b217625896 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 10 Oct 2012 16:17:40 -0700 Subject: [PATCH] better fix for threads with no parent showing up as unseen --- mod/notifications.php | 2 +- mod/ping.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/notifications.php b/mod/notifications.php index b28b1478d4..88c0b938d6 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -229,7 +229,7 @@ function notifications_content(&$a) { `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object` as `object`, `pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink` FROM `item` INNER JOIN `item` as `pitem` ON `pitem`.`id`=`item`.`parent` - WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND + WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND `pitem`.`parent` != 0 `item`.`deleted` = 0 AND `item`.`uid` = %d AND `item`.`wall` = 0 ORDER BY `item`.`created` DESC" , intval(local_user()) ); diff --git a/mod/ping.php b/mod/ping.php index 6520dc77a4..a5bf315b5b 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -64,7 +64,7 @@ function ping_init(&$a) { `pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink` FROM `item` INNER JOIN `item` as `pitem` ON `pitem`.`id`=`item`.`parent` WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND - `item`.`deleted` = 0 AND `item`.`uid` = %d AND `item`.`parent` != 0 + `item`.`deleted` = 0 AND `item`.`uid` = %d AND `pitem`.`parent` != 0 ORDER BY `item`.`created` DESC", intval(local_user()) );