no hub - well doh, no wonder; we were looking for array['hub'] and it's actually array['url'].

This commit is contained in:
friendica 2012-12-29 23:45:06 -08:00
parent 39c30d161f
commit cb329b9fb4
3 changed files with 3 additions and 5 deletions

View File

@ -347,11 +347,11 @@ function zot_register_hub($arr) {
$result = array('success' => false);
if($arr['hub'] && $arr['hub_sig'] && $arr['guid'] && $arr['guid_sig']) {
if($arr['url'] && $arr['url_sig'] && $arr['guid'] && $arr['guid_sig']) {
$guid_hash = base64url_encode(hash('whirlpool',$arr['guid'] . $arr['guid_sig'], true));
$x = z_fetch_url($arr['hub'] . '/.well-known/zot-info/?f=&hash=' . $guid_hash);
$x = z_fetch_url($arr['url'] . '/.well-known/zot-info/?f=&hash=' . $guid_hash);
if($x['success']) {
$record = json_decode($x['body'],true);

View File

@ -90,8 +90,6 @@ function post_post(&$a) {
json_return_and_die($encrypted);
}
if(array_key_exists('sender',$data)) {
$sender = $data['sender'];
}

View File

@ -1 +1 @@
2012-12-28.183
2012-12-29.184