aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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);