From 573a441d83169afa90bc564add3b7ff753ac2f7b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sun, 22 Nov 2015 12:28:39 +0100 Subject: [PATCH] Do not notify own posts, closes #1032 --- mod/ping.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/ping.php b/mod/ping.php index 30b5785aec..8cbfd308e6 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -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)) { -- 2.39.5