diff options
author | friendica <info@friendica.com> | 2012-12-29 23:45:06 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-12-29 23:45:06 -0800 |
commit | cb329b9fb4b2bc2553219d75f05bf5237974c4dd (patch) | |
tree | 99e325de18fc9ae1465299f9eda4ea0ee3913ea9 | |
parent | 39c30d161f2d576252399a92620bfdc9a2f8a9f6 (diff) | |
download | volse-hubzilla-cb329b9fb4b2bc2553219d75f05bf5237974c4dd.tar.gz volse-hubzilla-cb329b9fb4b2bc2553219d75f05bf5237974c4dd.tar.bz2 volse-hubzilla-cb329b9fb4b2bc2553219d75f05bf5237974c4dd.zip |
no hub - well doh, no wonder; we were looking for array['hub'] and it's actually array['url'].
-rw-r--r-- | include/zot.php | 4 | ||||
-rw-r--r-- | mod/post.php | 2 | ||||
-rw-r--r-- | 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 |