Make 404 Redirect of stubs more strict. #454

This should make accidental redirects (such as the iframe bug ones)
less likely.
This commit is contained in:
ccd0 2015-08-14 17:38:08 -07:00
parent 8ae09a09d8
commit 21484ec711

View File

@ -204,7 +204,7 @@ Main =
initReady: ->
# 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'
if g.VIEW is 'thread' and (d.title in ['4chan - Temporarily Offline', '4chan - 404 Not Found'] or ($('.board') and not $('.opContainer')))
ThreadWatcher.set404 g.BOARD.ID, g.THREADID, ->
if Conf['404 Redirect']
Redirect.navigate 'thread',