fix poco acct: url

This commit is contained in:
friendica 2012-12-30 03:15:58 -08:00
parent 2f1bc925de
commit a8e16c48b1

View File

@ -10,7 +10,6 @@ function poco_init(&$a) {
$observer = $a->get_observer();
if(argc() > 1) {
$user = notags(trim(argv(1)));
}
@ -21,6 +20,7 @@ function poco_init(&$a) {
$system_mode = true;
}
$format = (($_REQUEST['format']) ? $_REQUEST['format'] : 'json');
$justme = false;
@ -151,7 +151,7 @@ function poco_init(&$a) {
$entry['displayName'] = $rr['xchan_name'];
if($fields_ret['urls']) {
$entry['urls'] = array(array('value' => $rr['xchan_url'], 'type' => 'profile'));
if($rr['addr'] && ($rr['network'] !== NETWORK_MAIL))
if($rr['xchan_addr'])
$entry['urls'][] = array('value' => 'acct:' . $rr['xchan_addr'], 'type' => 'zot');
}
if($fields_ret['preferredUsername'])