basic hub registration

This commit is contained in:
friendica
2012-08-21 23:11:27 -07:00
parent 72d38d75bf
commit 2140c2ea37
4 changed files with 49 additions and 35 deletions

View File

@@ -15,16 +15,16 @@ function post_post(&$a) {
if($msgtype === 'notify') {
$hub = zot_gethub($_REQUEST['guid']);
$hub = zot_gethub($_REQUEST);
if(! $hub) {
$result = zot_register_hub($_REQUEST);
if(! $result) {
if((! $result) || (! zot_gethub($_REQUEST))) {
$ret['message'] = 'Hub not available.';
json_return_and_dir($ret);
json_return_and_die($ret);
}
}
// check which hub is primary and take action if mismatched
// check which hub is primary and take action if mismatched
// add to receive queue
// qreceive_add($_REQUEST);