]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change no-such-user error to a 404 instead of a 400
authorEvan Prodromou <evan@prodromou.name>
Mon, 4 Aug 2008 13:20:01 +0000 (09:20 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 4 Aug 2008 13:20:01 +0000 (09:20 -0400)
darcs-hash:20080804132001-84dde-e6fae9837f87d80356317e4815516dd9ff03e674.gz

actions/showstream.php

index 1161c92d6bd1692824ebcef51e76e6cc33355d1f..29ff58a59464e8cf6776f41836856c64490fe1c1 100644 (file)
@@ -107,7 +107,7 @@ class ShowstreamAction extends StreamAction {
        }
 
        function no_such_user() {
-               common_user_error(_('No such user.'));
+               $this->client_error(_('No such user.'), 404);
        }
 
        function show_profile($profile) {