aboutsummaryrefslogtreecommitdiffstats
path: root/mod/zfinger.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-14 01:48:54 -0700
committerfriendica <info@friendica.com>2014-09-14 01:48:54 -0700
commitc27b60d98107e3949df3e48b9f5886483bf7ce57 (patch)
tree5f42448dc4e0ec3ed363e532aae827fc538f465f /mod/zfinger.php
parent5f4bcc4ef2b8f9cb2fd4a1f191f5f8465c194d63 (diff)
downloadvolse-hubzilla-c27b60d98107e3949df3e48b9f5886483bf7ce57.tar.gz
volse-hubzilla-c27b60d98107e3949df3e48b9f5886483bf7ce57.tar.bz2
volse-hubzilla-c27b60d98107e3949df3e48b9f5886483bf7ce57.zip
more heavy lifting on the hubloc management and revocation infrastructure; don't rush me. This is going to become a fundamental part of zot. It deserves careful consideration.
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r--mod/zfinger.php23
1 files changed, 3 insertions, 20 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index 1226f74fe..666f141ec 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -208,28 +208,11 @@ function zfinger_init(&$a) {
if($permissions['view_profile'])
$ret['profile'] = $profile;
-
// array of (verified) hubs this channel uses
- $ret['locations'] = array();
-
- $x = zot_get_hublocs($e['channel_hash']);
- if($x && count($x)) {
- foreach($x as $hub) {
- if(! ($hub['hubloc_flags'] & HUBLOC_FLAGS_UNVERIFIED)) {
- $ret['locations'][] = array(
- 'host' => $hub['hubloc_host'],
- 'address' => $hub['hubloc_addr'],
- 'primary' => (($hub['hubloc_flags'] & HUBLOC_FLAGS_PRIMARY) ? true : false),
- 'url' => $hub['hubloc_url'],
- 'url_sig' => $hub['hubloc_url_sig'],
- 'callback' => $hub['hubloc_callback'],
- 'sitekey' => $hub['hubloc_sitekey'],
- 'deleted' => (($hub['hubloc_flags'] & HUBLOC_FLAGS_DELETED) ? true : false)
- );
- }
- }
- }
+ $x = zot_encode_locations($e);
+ if($x)
+ $ret['locations'] = $x;
$ret['site'] = array();
$ret['site']['url'] = z_root();