]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
Do not notify own posts, closes #1032
[friendica.git] / mod / ping.php
index 30b5785aeca7d2df4e8524c56c67299e30775627..8cbfd308e67aa3792a0a5329617ae84efa609fe7 100644 (file)
@@ -41,8 +41,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)) {