X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoco.php;h=79cf820bcd9b15c1d040d46e3a90406ed2c01530;hb=792abc3a24d13408d4e31a4137a8173e3039bd8e;hp=dd8df600839373ed4cb3a16e2891e7c34c0fc8bf;hpb=d2e110abf5c530b6e4f2e32bf8812faa3fa131f2;p=friendica.git diff --git a/mod/poco.php b/mod/poco.php old mode 100644 new mode 100755 index dd8df60083..79cf820bcd --- 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'])