From 0c7710681c26b15abca809ca078598d301516f70 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 4 Apr 2012 18:49:39 -0700 Subject: [PATCH] log disabled requests --- include/diaspora.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/diaspora.php b/include/diaspora.php index 9951cf4237..37d5990eee 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 -- 2.39.5