From cb329b9fb4b2bc2553219d75f05bf5237974c4dd Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 29 Dec 2012 23:45:06 -0800 Subject: [PATCH] no hub - well doh, no wonder; we were looking for array['hub'] and it's actually array['url']. --- include/zot.php | 4 ++-- mod/post.php | 2 -- version.inc | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/zot.php b/include/zot.php index 001088f6a..7915132fe 100644 --- a/include/zot.php +++ b/include/zot.php @@ -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); diff --git a/mod/post.php b/mod/post.php index 3c852974e..5abf7ac0f 100644 --- a/mod/post.php +++ b/mod/post.php @@ -90,8 +90,6 @@ function post_post(&$a) { json_return_and_die($encrypted); } - - if(array_key_exists('sender',$data)) { $sender = $data['sender']; } diff --git a/version.inc b/version.inc index ef8dd5184..507ff23a1 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2012-12-28.183 +2012-12-29.184