]> git.mxchange.org Git - friendica.git/blobdiff - mod/receive.php
OStatus conversation: now the creation date of the item is store with the conversation
[friendica.git] / mod / receive.php
index 950bf0bd388e80ed20fd69541bd46b7e5765c99e..0523fd9cc5df45812613f3162932c7dd7a1d2a90 100644 (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')) {
@@ -24,7 +31,7 @@ function receive_post(&$a) {
 
                $guid = $a->argv[2];
 
-               $r = q("SELECT * FROM `user` WHERE `guid` = '%s' AND `account_expired` = 0 LIMIT 1",
+               $r = q("SELECT * FROM `user` WHERE `guid` = '%s' AND `account_expired` = 0 AND `account_removed` = 0 LIMIT 1",
                        dbesc($guid)
                );
                if(! count($r))