Ported fix to #17

This commit is contained in:
Dominik Picheta 2014-12-30 15:34:23 +00:00
commit cb9ac61876

View file

@ -759,6 +759,11 @@ routes:
get "/t/@threadid/?@page?/?@postid?/?":
createTFD()
parseInt(@"threadid", c.threadId, -1..1000_000)
if c.threadId == unselectedThread:
# Thread has just been deleted.
redirect(uri("/"))
if @"page".len > 0:
parseInt(@"page", c.pageNum, 0..1000_000)
if @"postid".len > 0: