let's catch d* disabled at a higher level and not waste any resources on it.
This commit is contained in:
parent
5377683c0f
commit
b45327b856
1 changed files with 7 additions and 0 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue