aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-04 18:49:39 -0700
committerfriendica <info@friendica.com>2012-04-04 18:49:39 -0700
commit0c7710681c26b15abca809ca078598d301516f70 (patch)
tree89e7d77937a801bc59530d7d62e412a77c4eb668
parent71671e5b9a497bb0d81216e638f19a48f683ee52 (diff)
downloadvolse-hubzilla-0c7710681c26b15abca809ca078598d301516f70.tar.gz
volse-hubzilla-0c7710681c26b15abca809ca078598d301516f70.tar.bz2
volse-hubzilla-0c7710681c26b15abca809ca078598d301516f70.zip
log disabled requests
-rwxr-xr-xinclude/diaspora.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 9951cf423..37d5990ee 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -10,8 +10,10 @@ require_once('include/queue_fn.php');
function diaspora_dispatch_public($msg) {
$enabled = intval(get_config('system','diaspora_enabled'));
- if(! $enabled)
+ if(! $enabled) {
+ logger('mod-diaspora: disabled');
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 ",
dbesc(NETWORK_DIASPORA),
@@ -34,8 +36,10 @@ function diaspora_dispatch($importer,$msg) {
$ret = 0;
$enabled = intval(get_config('system','diaspora_enabled'));
- if(! $enabled)
+ if(! $enabled) {
+ logger('mod-diaspora: disabled');
return;
+ }
// php doesn't like dashes in variable names