aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-16 14:51:25 -0700
committerFriendika <info@friendika.com>2011-09-16 14:51:25 -0700
commitd7243be2eaab96f56ae639b1afe823a1646811f4 (patch)
treebd64e75293145c59b7708142607ef7078f2c8100 /include/diaspora.php
parent5a6a3cab8ee6b5c979b7c51112bb2c86915ac207 (diff)
downloadvolse-hubzilla-d7243be2eaab96f56ae639b1afe823a1646811f4.tar.gz
volse-hubzilla-d7243be2eaab96f56ae639b1afe823a1646811f4.tar.bz2
volse-hubzilla-d7243be2eaab96f56ae639b1afe823a1646811f4.zip
log the D* publc messages
Diffstat (limited to 'include/diaspora.php')
-rw-r--r--include/diaspora.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 5e4301e78..0436673ea 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -8,15 +8,18 @@ require_once('include/contact_selectors.php');
function diaspora_dispatch_public($msg) {
- $r = q("SELECT `user`.* FROM `user` WHERE `user`.`uid` IN ( SELECT `uid` FROM `contact` WHERE `network` = '%s' AND `addr` = '%s' ) ",
+ $r = q("SELECT `user`.* FROM `user` WHERE `user`.`uid` IN ( SELECT `contact`.`uid` FROM `contact` WHERE `contact`.`network` = '%s' AND `contact`.`addr` = '%s' ) ",
dbesc(NETWORK_DIASPORA),
dbesc($msg['author'])
);
if(count($r)) {
foreach($r as $rr) {
+ logger('diaspora_public: delivering to: ' . $rr['username']);
diaspora_dispatch($rr,$msg);
}
}
+ else
+ logger('diaspora_public: no subscribers');
}