no hub - well doh, no wonder; we were looking for array['hub'] and it's actually array['url'].
This commit is contained in:
parent
39c30d161f
commit
cb329b9fb4
@ -347,11 +347,11 @@ function zot_register_hub($arr) {
|
|||||||
|
|
||||||
$result = array('success' => false);
|
$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));
|
$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']) {
|
if($x['success']) {
|
||||||
$record = json_decode($x['body'],true);
|
$record = json_decode($x['body'],true);
|
||||||
|
@ -90,8 +90,6 @@ function post_post(&$a) {
|
|||||||
json_return_and_die($encrypted);
|
json_return_and_die($encrypted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(array_key_exists('sender',$data)) {
|
if(array_key_exists('sender',$data)) {
|
||||||
$sender = $data['sender'];
|
$sender = $data['sender'];
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
2012-12-28.183
|
2012-12-29.184
|
||||||
|
Reference in New Issue
Block a user