aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-09-27 17:48:10 -0700
committerfriendica <info@friendica.com>2012-09-27 17:48:10 -0700
commitd261fe271fdee747244c76f7ba4679b8372a2e8c (patch)
tree90da2f6f16c484243c4b422d32b72ddd9e04965f /mod/ping.php
parentba4fe4ff919fa3250db33eee2425870f10107e81 (diff)
downloadvolse-hubzilla-d261fe271fdee747244c76f7ba4679b8372a2e8c.tar.gz
volse-hubzilla-d261fe271fdee747244c76f7ba4679b8372a2e8c.tar.bz2
volse-hubzilla-d261fe271fdee747244c76f7ba4679b8372a2e8c.zip
create a widget registry for pages so themes can reorder, insert/delete, and relocate widgets to different regions of the page
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/ping.php b/mod/ping.php
index da612a255..21f36a163 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -100,7 +100,7 @@ function ping_init(&$a) {
$t1 = dba_timer();
$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
@@ -109,7 +109,10 @@ function ping_init(&$a) {
intval(local_user())
);
- if(count($r)) {
+ if(count($r)) {
+
+ call_hooks('network_ping', array('items' => $r));
+
foreach ($r as $it) {
if($it['wall'])
$result['home'] ++;