aboutsummaryrefslogtreecommitdiffstats
path: root/mod/zfinger.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-31 16:55:19 -0700
committerfriendica <info@friendica.com>2012-10-31 16:55:19 -0700
commit62a8298b549c8985a7817be046d7e25cbaf17cb5 (patch)
tree1d2a3de819567e3121f2035a03db47fcc8ed6295 /mod/zfinger.php
parentfb173900a16938c3ab7f066e4909d50b9f764473 (diff)
downloadvolse-hubzilla-62a8298b549c8985a7817be046d7e25cbaf17cb5.tar.gz
volse-hubzilla-62a8298b549c8985a7817be046d7e25cbaf17cb5.tar.bz2
volse-hubzilla-62a8298b549c8985a7817be046d7e25cbaf17cb5.zip
starting on pinging the basic elements of federation and communication
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r--mod/zfinger.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index e76255032..2ae265df7 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -67,8 +67,10 @@ function zfinger_init(&$a) {
$ret['hubs'][] = array(
'primary' => (($hub['hubloc_flags'] & HUBLOC_FLAGS_PRIMARY) ? true : false),
'url' => $hub['hubloc_url'],
+ 'url_sig' => $hub['hubloc_url_sig'],
/// hmmm we probably shouldn't sign somebody else's hub. FIXME
- 'url_sig' => base64url_encode(rsa_sign($hub['hubloc_url'],$e['channel_prvkey'])),
+ 'url_sig2' => base64url_encode(rsa_sign($hub['hubloc_url'],$e['channel_prvkey'])),
+ 'host' => $hub['hubloc_host'],
'callback' => $hub['hubloc_callback'],
'sitekey' => $hub['hubloc_sitekey']
);