X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoco.php;h=acfa3ffaa98e46c637fffdf4c96e5463b5a88cdb;hb=1b9438120cdf13aa355cf6d761e92f4a39063c44;hp=6efd4ab8cc395116d763b09a3bae99ca4ae98716;hpb=978717a2475bbd25d61969e9448dc6f197c8d637;p=friendica.git diff --git a/mod/poco.php b/mod/poco.php index 6efd4ab8cc..acfa3ffaa9 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -45,6 +45,8 @@ function poco_init(&$a) { if($justme) $sql_extra = " and `contact`.`self` = 1 "; + else + $sql_extra = " and `contact`.`self` = 0 "; if($cid) $sql_extra = sprintf(" and `contact`.`id` = %d ",intval($cid)); @@ -127,8 +129,9 @@ function poco_init(&$a) { $entry['displayName'] = $rr['name']; if($fields_ret['urls']) { $entry['urls'] = array(array('value' => $rr['url'], 'type' => 'profile')); - if($rr['addr'] && ($rr['network'] !== NETWORK_MAIL) + 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'])