fix poco acct: url
This commit is contained in:
parent
2f1bc925de
commit
a8e16c48b1
@ -10,7 +10,6 @@ function poco_init(&$a) {
|
|||||||
|
|
||||||
$observer = $a->get_observer();
|
$observer = $a->get_observer();
|
||||||
|
|
||||||
|
|
||||||
if(argc() > 1) {
|
if(argc() > 1) {
|
||||||
$user = notags(trim(argv(1)));
|
$user = notags(trim(argv(1)));
|
||||||
}
|
}
|
||||||
@ -21,6 +20,7 @@ function poco_init(&$a) {
|
|||||||
$system_mode = true;
|
$system_mode = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$format = (($_REQUEST['format']) ? $_REQUEST['format'] : 'json');
|
$format = (($_REQUEST['format']) ? $_REQUEST['format'] : 'json');
|
||||||
|
|
||||||
$justme = false;
|
$justme = false;
|
||||||
@ -151,7 +151,7 @@ function poco_init(&$a) {
|
|||||||
$entry['displayName'] = $rr['xchan_name'];
|
$entry['displayName'] = $rr['xchan_name'];
|
||||||
if($fields_ret['urls']) {
|
if($fields_ret['urls']) {
|
||||||
$entry['urls'] = array(array('value' => $rr['xchan_url'], 'type' => 'profile'));
|
$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');
|
$entry['urls'][] = array('value' => 'acct:' . $rr['xchan_addr'], 'type' => 'zot');
|
||||||
}
|
}
|
||||||
if($fields_ret['preferredUsername'])
|
if($fields_ret['preferredUsername'])
|
||||||
|
Reference in New Issue
Block a user