Explicit return for the redirect in the /sign route

This commit is contained in:
swagg boi 2022-01-10 13:44:30 -05:00
parent 022eb93399
commit 361c4d432a

View file

@ -86,7 +86,8 @@ any [qw{GET POST}], '/sign' => sub ($c) {
$c->message->create_post($name, $message, $url, $spam);
$c->flash(error => 'This message was flagged as spam') if $spam;
$c->redirect_to('index');
return $c->redirect_to('index');
}
}