X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoco.php;h=acfa3ffaa98e46c637fffdf4c96e5463b5a88cdb;hb=0f0fb2e2f3b9819e4f1b65c3ea1b96e78c008381;hp=54ec60ff3f0c218139e27abe136cb80b213995f5;hpb=b0718c4f05ad8b03d4bfb1acaeea2e8ce18f59df;p=friendica.git diff --git a/mod/poco.php b/mod/poco.php index 54ec60ff3f..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)); @@ -129,6 +131,7 @@ function poco_init(&$a) { $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'])