diff options
author | Derf Null <derf@finalrewind.org> | 2023-05-29 14:43:52 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-05-29 14:44:10 +0200 |
commit | b3f36b750a16920c3aab82d264e2318abc112f9d (patch) | |
tree | c63c3274877130fd20acc849e3d1ac788362c921 | |
parent | dadb94a47347a766b31e5a2533a456db67048ae2 (diff) |
Profile#user_status: return 404 if the user does not exist
-rwxr-xr-x | lib/Travelynx/Controller/Profile.pm | 2 |
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; } |