aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/zot.php4
-rw-r--r--mod/post.php2
-rw-r--r--version.inc2
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