From: friendica Date: Thu, 5 Apr 2012 03:45:48 +0000 (-0700) Subject: let's catch d* disabled at a higher level and not waste any resources on it. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b45327b856a3ce116931c6b554e23fc1bef20b7c;p=friendica.git let's catch d* disabled at a higher level and not waste any resources on it. --- diff --git a/mod/receive.php b/mod/receive.php index 950bf0bd38..2bd3cc65bc 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')) {