From 21484ec7114646992cb0de24eb3b6fb6e1e306d7 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 14 Aug 2015 17:38:08 -0700 Subject: [PATCH] Make 404 Redirect of stubs more strict. #454 This should make accidental redirects (such as the iframe bug ones) less likely. --- src/General/Main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index a39f72e4b..94c64d7f7 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -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',