]> git.mxchange.org Git - friendica.git/commitdiff
log the D* publc messages
authorFriendika <info@friendika.com>
Fri, 16 Sep 2011 21:51:25 +0000 (14:51 -0700)
committerFriendika <info@friendika.com>
Fri, 16 Sep 2011 21:51:25 +0000 (14:51 -0700)
include/diaspora.php

index 5e4301e78cbf9899ec8b7f4fa76dff1a41dbe98c..0436673ea51c8a370fc1b7649fd9e4c3f8752fda 100644 (file)
@@ -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');
 }