aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-29 23:45:06 -0800
committerfriendica <info@friendica.com>2012-12-29 23:45:06 -0800
commitcb329b9fb4b2bc2553219d75f05bf5237974c4dd (patch)
tree99e325de18fc9ae1465299f9eda4ea0ee3913ea9 /include/zot.php
parent39c30d161f2d576252399a92620bfdc9a2f8a9f6 (diff)
downloadvolse-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'].
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php4
1 files changed, 2 insertions, 2 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);