aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/poco.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/poco.php b/mod/poco.php
index f2a949142..c0dc2e133 100644
--- a/mod/poco.php
+++ b/mod/poco.php
@@ -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'])