Browse Source

Do not notify own posts, closes #1032

pull/2092/head
Sandro Santilli 5 years ago
parent
commit
573a441d83
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mod/ping.php

+ 2
- 1
mod/ping.php View 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)) {


Loading…
Cancel
Save