]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
Merge pull request #2132 from rabuzarus/0112_vier_css
[friendica.git] / mod / ping.php
index 9075bd28a708421bb27356bf987b5a2012596ba4..967555881c0c1f5f535163fb1657b8ea9349a642 100644 (file)
@@ -43,8 +43,9 @@ function ping_init(&$a) {
                                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 `pitem`.`parent` != 0
+                               AND `item`.`contact-id` != %d
                                ORDER BY `item`.`created` DESC",
-                       intval(local_user())
+                       intval(local_user()), intval(local_user())
                );
 
                if(count($r)) {