Fix thread ID parsing on Tinyboard.
This commit is contained in:
parent
671b733e30
commit
d880875c39
@ -170,7 +170,7 @@ Main =
|
||||
|
||||
if pathname[2] in ['thread', 'res']
|
||||
g.VIEW = 'thread'
|
||||
g.THREADID = +pathname[3]
|
||||
g.THREADID = +pathname[3].replace('.html', '')
|
||||
else if /^(?:catalog|archive)(?:\.html)?$/.test(pathname[2])
|
||||
g.VIEW = pathname[2].replace('.html', '')
|
||||
else if /^(?:index|\d*)(?:\.html)?$/.test(pathname[2])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user