This commit is contained in:
friendica
2012-11-12 20:59:18 -08:00
parent b4c603cdac
commit 5bf3ddfcf6
5 changed files with 66 additions and 28 deletions

View File

@@ -9,6 +9,8 @@ require_once('include/zot.php');
function post_post(&$a) {
logger('mod_zot: ' . print_r($_REQUEST,true), LOGGER_DEBUG);
$ret = array('result' => false);
if(array_key_exists('iv',$_REQUEST)) {
@@ -31,6 +33,7 @@ function post_post(&$a) {
$result = zot_register_hub($j_sender);
if((! $result['success']) || (! zot_gethub($j_sender))) {
$ret['message'] = 'Hub not available.';
logger('mod_zot: no hub');
json_return_and_die($ret);
}
}