Do 404 redirect for threads left over as stubs.
This commit is contained in:
parent
4a456548f6
commit
68bd81ccde
@ -162,8 +162,8 @@ Main =
|
||||
attributeFilter: ['href']
|
||||
|
||||
initReady: ->
|
||||
if d.title in ['4chan - Temporarily Offline', '4chan - 404 Not Found']
|
||||
if g.VIEW is 'thread'
|
||||
# XXX Sometimes threads don't 404 but are left over as stubs containing one garbage reply post.
|
||||
if g.VIEW is 'thread' and not $ '.opContainer'
|
||||
ThreadWatcher.set404 g.BOARD.ID, g.THREADID, ->
|
||||
if Conf['404 Redirect']
|
||||
Redirect.navigate 'thread',
|
||||
@ -173,6 +173,8 @@ Main =
|
||||
, "/#{g.BOARD}/"
|
||||
return
|
||||
|
||||
return if d.title in ['4chan - Temporarily Offline', '4chan - 404 Not Found']
|
||||
|
||||
# 4chan Pass Link
|
||||
if styleSelector = $.id 'styleSelector'
|
||||
passLink = $.el 'a',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user