diff options
author | friendica <info@friendica.com> | 2012-12-30 03:15:58 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-12-30 03:15:58 -0800 |
commit | a8e16c48b199fc767ef990d171bf0778e9cdc3bc (patch) | |
tree | a97e87618cfa53931d5a521b56d5d23834924a45 | |
parent | 2f1bc925de4b921acb9b96dbbc50ee3c8548cfd8 (diff) | |
download | volse-hubzilla-a8e16c48b199fc767ef990d171bf0778e9cdc3bc.tar.gz volse-hubzilla-a8e16c48b199fc767ef990d171bf0778e9cdc3bc.tar.bz2 volse-hubzilla-a8e16c48b199fc767ef990d171bf0778e9cdc3bc.zip |
fix poco acct: url
-rw-r--r-- | mod/poco.php | 4 |
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']) |