]> git.mxchange.org Git - friendica.git/commitdiff
better fix for threads with no parent showing up as unseen
authorfriendica <info@friendica.com>
Wed, 10 Oct 2012 23:17:40 +0000 (16:17 -0700)
committerfriendica <info@friendica.com>
Wed, 10 Oct 2012 23:17:40 +0000 (16:17 -0700)
mod/notifications.php
mod/ping.php

index b28b1478d49a8ab0cc007a598fa0e41df13af7a5..88c0b938d63fb95143394131ccb35f5298330149 100644 (file)
@@ -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())
                );
index 6520dc77a44a2361a37ad450464d31cca20771fa..a5bf315b5bb6ecc530b090f976475337b59bfc77 100644 (file)
@@ -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())
                );