parent::handle($args);
$id = $this->trimmed('id');
if (!$id) {
- $this->client_error(_t('No id.'));
+ $this->client_error(_('No id.'));
}
$user =& User::staticGet($id);
- if (!$id) {
- $this->client_error(_t('No such user.'));
+ if (!$user) {
+ $this->client_error(_('No such user.'));
}
- common_redirect('showstream',
- array('nickname' => $user->nickname));
+ $url=common_local_url('showstream',
+ array('nickname' => $user->nickname));
+ common_redirect($url, 303);
}
}