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.'));
}
$url=common_local_url('showstream',
array('nickname' => $user->nickname));