summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-05-29 14:43:52 +0200
committerDerf Null <derf@finalrewind.org>2023-05-29 14:44:10 +0200
commitb3f36b750a16920c3aab82d264e2318abc112f9d (patch)
treec63c3274877130fd20acc849e3d1ac788362c921 /lib/Travelynx/Controller
parentdadb94a47347a766b31e5a2533a456db67048ae2 (diff)
Profile#user_status: return 404 if the user does not exist
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Profile.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Profile.pm b/lib/Travelynx/Controller/Profile.pm
index 925a1ff..a268a23 100755
--- a/lib/Travelynx/Controller/Profile.pm
+++ b/lib/Travelynx/Controller/Profile.pm
@@ -293,7 +293,7 @@ sub user_status {
my $user = $self->users->get_privacy_by( name => $name );
if ( not $user ) {
- $self->render('not_found');
+ $self->render( 'not_found', status => 404 );
return;
}