]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
Merge branch 'master' of https://github.com/friendica/friendica
[friendica.git] / mod / poco.php
index 54ec60ff3f0c218139e27abe136cb80b213995f5..acfa3ffaa98e46c637fffdf4c96e5463b5a88cdb 100644 (file)
@@ -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'])