aboutsummaryrefslogtreecommitdiffstats
path: root/mod/poco.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-22 15:42:01 -0800
committerfriendica <info@friendica.com>2011-12-22 15:42:01 -0800
commit95b4bc55bf54c3dffdb714b8a1d8f38cc78355aa (patch)
treeced1f9a8bc579f85e0b74f76239de76ea95cedc0 /mod/poco.php
parented725df5f1c1ea2484c689283e93f8f825591384 (diff)
parentb602203e6c9ae4b380fa615450e1a573f47cb756 (diff)
downloadvolse-hubzilla-95b4bc55bf54c3dffdb714b8a1d8f38cc78355aa.tar.gz
volse-hubzilla-95b4bc55bf54c3dffdb714b8a1d8f38cc78355aa.tar.bz2
volse-hubzilla-95b4bc55bf54c3dffdb714b8a1d8f38cc78355aa.zip
Merge branch 'master' into notify
Diffstat (limited to 'mod/poco.php')
-rw-r--r--mod/poco.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/poco.php b/mod/poco.php
index dd8df6008..79cf820bc 100644
--- a/mod/poco.php
+++ b/mod/poco.php
@@ -125,8 +125,11 @@ function poco_init(&$a) {
$entry['id'] = $rr['id'];
if($fields_ret['displayName'])
$entry['displayName'] = $rr['name'];
- if($fields_ret['urls'])
+ if($fields_ret['urls']) {
$entry['urls'] = array(array('value' => $rr['url'], 'type' => 'profile'));
+ if($rr['addr'] && ($rr['network'] !== NETWORK_MAIL))
+ $entry['urls'][] = array('value' => 'acct:' . $rr['addr'], 'type' => 'webfinger');
+ }
if($fields_ret['preferredUsername'])
$entry['preferredUsername'] = $rr['nick'];
if($fields_ret['photos'])