]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/userbyid.php
lcase tname
[quix0rs-gnu-social.git] / actions / userbyid.php
index 9de32406a5502a99702fb8ededb7f29e1ce3c4d7..7b95d0725966ec9791b77103fa08e2109597ee1a 100644 (file)
@@ -24,13 +24,14 @@ class UserbyidAction extends Action {
         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);
        }
 }