]> git.mxchange.org Git - friendica.git/commitdiff
let's catch d* disabled at a higher level and not waste any resources on it.
authorfriendica <info@friendica.com>
Thu, 5 Apr 2012 03:45:48 +0000 (20:45 -0700)
committerfriendica <info@friendica.com>
Thu, 5 Apr 2012 03:45:48 +0000 (20:45 -0700)
mod/receive.php

index 950bf0bd388e80ed20fd69541bd46b7e5765c99e..2bd3cc65bcda1b5ae273d9903184981805b8d33a 100755 (executable)
@@ -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')) {