Throw 404 if you request List page that doesn't exist

This commit is contained in:
swagg boi 2022-08-24 16:09:58 -04:00
parent 75418bf1aa
commit 8473f2f2d9
2 changed files with 3 additions and 0 deletions

View file

@ -50,6 +50,8 @@ group {
my $last_page = $c->thread->get_last_page();
my $threads = $c->thread->get_threads_by_page($this_page);
$c->stash(status => 404) unless $threads->[0];
$c->stash(
threads => $threads,
this_page => $this_page,

View file

@ -28,3 +28,4 @@ Run the tests locally (against development environment)
1. Return the last remark with remark form
1. Marked some items for clean up with comments
1. Method names may need to be shortened
1. Probably throw a 404 if you request a remark page that doesn't exist