add nomadic identities as webfinger aliases

This commit is contained in:
redmatrix 2015-06-09 16:29:51 -07:00
parent 54b61f817d
commit 805e2a28ee
2 changed files with 11 additions and 2 deletions

View File

@ -55,14 +55,23 @@ function wfinger_init(&$a) {
if($resource && $r) {
$h = q("select hubloc_addr from hubloc where hubloc_hash = '%s'",
dbesc($r[0]['channel_hash'])
);
$result['subject'] = $resource;
$aliases = array(
'acct:' . $r[0]['channel_address'] . '@' . $a->get_hostname(),
z_root() . '/channel/' . $r[0]['channel_address'],
z_root() . '/~' . $r[0]['channel_address']
);
if($h) {
foreach($h as $hh) {
$aliases[] = 'acct:' . $hh['hubloc_addr'];
}
}
$result['aliases'] = array();
$result['properties'] = array('http://webfinger.net/ns/name' => $r[0]['channel_name']);

View File

@ -1 +1 @@
2015-06-08.1057
2015-06-09.1058