]> git.mxchange.org Git - friendica.git/commitdiff
network_ping hook for next generation "page"/"forums" plugin
authorfriendica <info@friendica.com>
Wed, 26 Sep 2012 11:46:54 +0000 (04:46 -0700)
committerfriendica <info@friendica.com>
Wed, 26 Sep 2012 11:46:54 +0000 (04:46 -0700)
mod/ping.php

index 2698956d7ddd104d5b75c62a37dda39b833dca85..1c6a0ff5ce83ee90bea8478d97fcbf733b7972af 100644 (file)
@@ -60,7 +60,7 @@ function ping_init(&$a) {
                $network = 0;
 
                $r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`wall`, `item`.`author-name`, 
-                               `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object`, 
+                               `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
@@ -71,6 +71,8 @@ function ping_init(&$a) {
 
                if(count($r)) {         
 
+                       call_hooks('network_ping', array('items' => $r));
+
                        foreach ($r as $it) {
 
                                if($it['wall'])