commit
a480485529
1 changed files with 4 additions and 1 deletions
|
|
@ -670,6 +670,9 @@ get "/postActivity.xml":
|
||||||
get "/t/@threadid/?@page?/?":
|
get "/t/@threadid/?@page?/?":
|
||||||
createTFD()
|
createTFD()
|
||||||
parseInt(@"threadid", c.threadId, -1..1000_000)
|
parseInt(@"threadid", c.threadId, -1..1000_000)
|
||||||
|
if c.threadid == unselectedThread:
|
||||||
|
# Thread has just beed deleted
|
||||||
|
redirect(uri("/"))
|
||||||
if @"page".len > 0:
|
if @"page".len > 0:
|
||||||
parseInt(@"page", c.pageNum, 0..1000_000)
|
parseInt(@"page", c.pageNum, 0..1000_000)
|
||||||
cond (c.pageNum > 0)
|
cond (c.pageNum > 0)
|
||||||
|
|
@ -798,7 +801,7 @@ post "/doedit":
|
||||||
createTFD()
|
createTFD()
|
||||||
readIDs()
|
readIDs()
|
||||||
if edit(c, c.postId):
|
if edit(c, c.postId):
|
||||||
redirect(c.genThreadUrl())
|
redirect(c.genThreadUrl(pageNum = $(c.getPagesInThread+1)) & "#" & $c.postId)
|
||||||
else:
|
else:
|
||||||
body = ""
|
body = ""
|
||||||
handleError("doedit", "Edit", true)
|
handleError("doedit", "Edit", true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue