aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-04 20:45:48 -0700
committerfriendica <info@friendica.com>2012-04-04 20:45:48 -0700
commitb45327b856a3ce116931c6b554e23fc1bef20b7c (patch)
treef1c71825e14cee6fbc9a5d0d6ade8df22a58198b
parent5377683c0ff2959ae515ac21bf32beac8a7e4c60 (diff)
downloadvolse-hubzilla-b45327b856a3ce116931c6b554e23fc1bef20b7c.tar.gz
volse-hubzilla-b45327b856a3ce116931c6b554e23fc1bef20b7c.tar.bz2
volse-hubzilla-b45327b856a3ce116931c6b554e23fc1bef20b7c.zip
let's catch d* disabled at a higher level and not waste any resources on it.
-rwxr-xr-xmod/receive.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/receive.php b/mod/receive.php
index 950bf0bd3..2bd3cc65b 100755
--- a/mod/receive.php
+++ b/mod/receive.php
@@ -12,6 +12,13 @@ require_once('include/diaspora.php');
function receive_post(&$a) {
+
+ $enabled = intval(get_config('system','diaspora_enabled'));
+ if(! $enabled) {
+ logger('mod-diaspora: disabled');
+ http_status_exit(500);
+ }
+
$public = false;
if(($a->argc == 2) && ($a->argv[1] === 'public')) {