]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
Merge branch 'master' into notify
[friendica.git] / mod / poco.php
index dd8df600839373ed4cb3a16e2891e7c34c0fc8bf..79cf820bcd9b15c1d040d46e3a90406ed2c01530 100644 (file)
@@ -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'])