]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
Preparations for the pumpio synchronisation.
[friendica.git] / mod / ping.php
index 1c6a0ff5ce83ee90bea8478d97fcbf733b7972af..a5bf315b5bb6ecc530b090f976475337b59bfc77 100644 (file)
@@ -63,15 +63,16 @@ function ping_init(&$a) {
                                `item`.`contact-id`, `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object`, 
                                `pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink` 
                                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 
+                               WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND 
+                                `item`.`deleted` = 0 AND `item`.`uid` = %d AND `pitem`.`parent` != 0
                                ORDER BY `item`.`created` DESC",
                        intval(local_user())
                );
 
                if(count($r)) {         
 
-                       call_hooks('network_ping', array('items' => $r));
+                       $arr = array('items' => $r);
+                       call_hooks('network_ping', $arr);
 
                        foreach ($r as $it) {