1
0
Fork 0

let's catch d* disabled at a higher level and not waste any resources on it.

This commit is contained in:
friendica 2012-04-04 20:45:48 -07:00
parent 5377683c0f
commit b45327b856

View file

@ -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')) {