1
1
Fork 0

rev update - prevent messages with no parent from being counted as unseen, because they cannot ever be cleared

This commit is contained in:
friendica 2012-10-10 15:57:40 -07:00
commit 675aa56b02
3 changed files with 5 additions and 5 deletions

View file

@ -63,8 +63,8 @@ function ping_init(&$a) {
`item`.`contact-id`, `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`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
`item`.`deleted` = 0 AND `item`.`uid` = %d
WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND
`item`.`deleted` = 0 AND `item`.`uid` = %d AND `item`.`parent` != 0
ORDER BY `item`.`created` DESC",
intval(local_user())
);