]> git.mxchange.org Git - friendica.git/commitdiff
Do not notify own posts, closes #1032
authorSandro Santilli <strk@keybit.net>
Sun, 22 Nov 2015 11:28:39 +0000 (12:28 +0100)
committerSandro Santilli <strk@keybit.net>
Sun, 22 Nov 2015 11:28:39 +0000 (12:28 +0100)
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)) {