Profile#user_status: return 404 if the user does not exist

This commit is contained in:
Derf Null 2023-05-29 14:43:52 +02:00
parent dadb94a473
commit b3f36b750a
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -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;
}