aboutsummaryrefslogtreecommitdiffstats
path: root/mod/zfinger.php
diff options
context:
space:
mode:
authorPaolo Tacconi <p.tacconi@giunti.it>2014-09-15 10:01:25 +0200
committerPaolo Tacconi <p.tacconi@giunti.it>2014-09-15 10:01:25 +0200
commit4f793069bf4aafcfe77d50e47690173104ef23c7 (patch)
tree7fe1bfcb18672300bf14967338690ea4fa51e640 /mod/zfinger.php
parented7f3001c1c1deec5076ae12114e5c42865b6251 (diff)
parent58aad83e5cb0edaf1ccc543147030e782c5e7ba9 (diff)
downloadvolse-hubzilla-4f793069bf4aafcfe77d50e47690173104ef23c7.tar.gz
volse-hubzilla-4f793069bf4aafcfe77d50e47690173104ef23c7.tar.bz2
volse-hubzilla-4f793069bf4aafcfe77d50e47690173104ef23c7.zip
Merge branch 'master' of https://github.com/friendica/red
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();