1
0
Fork 0

log disabled requests

This commit is contained in:
friendica 2012-04-04 18:49:39 -07:00
parent 71671e5b9a
commit 0c7710681c

View file

@ -10,8 +10,10 @@ require_once('include/queue_fn.php');
function diaspora_dispatch_public($msg) { function diaspora_dispatch_public($msg) {
$enabled = intval(get_config('system','diaspora_enabled')); $enabled = intval(get_config('system','diaspora_enabled'));
if(! $enabled) if(! $enabled) {
logger('mod-diaspora: disabled');
return; return;
}
$r = q("SELECT `user`.* FROM `user` WHERE `user`.`uid` IN ( SELECT `contact`.`uid` FROM `contact` WHERE `contact`.`network` = '%s' AND `contact`.`addr` = '%s' ) AND `account_expired` = 0 ", $r = q("SELECT `user`.* FROM `user` WHERE `user`.`uid` IN ( SELECT `contact`.`uid` FROM `contact` WHERE `contact`.`network` = '%s' AND `contact`.`addr` = '%s' ) AND `account_expired` = 0 ",
dbesc(NETWORK_DIASPORA), dbesc(NETWORK_DIASPORA),
@ -34,8 +36,10 @@ function diaspora_dispatch($importer,$msg) {
$ret = 0; $ret = 0;
$enabled = intval(get_config('system','diaspora_enabled')); $enabled = intval(get_config('system','diaspora_enabled'));
if(! $enabled) if(! $enabled) {
logger('mod-diaspora: disabled');
return; return;
}
// php doesn't like dashes in variable names // php doesn't like dashes in variable names