From cec8bf186e1c210ddf939bdfaa7d6e4958301191 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sun, 25 Aug 2013 00:17:42 +0200 Subject: [PATCH] Fix #1262. --- src/General/Get.coffee | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/General/Get.coffee b/src/General/Get.coffee index eba405cae..d19e8db11 100644 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -118,17 +118,18 @@ Get = Build.spoilerRange[boardID] = posts[0].custom_spoiler for post in posts break if post.no is postID # we found it! - if post.no > postID - # The post can be deleted by the time we check a quote. - if url = Redirect.to 'post', {boardID, postID} - $.cache url, - -> Get.archivedPost @, boardID, postID, root, context - , - withCredentials: url.archive.withCredentials - else - $.addClass root, 'warning' - root.textContent = "Post No.#{postID} was not found." - return + + if post.no isnt postID + # The post can be deleted by the time we check a quote. + if url = Redirect.to 'post', {boardID, postID} + $.cache url, + -> Get.archivedPost @, boardID, postID, root, context + , + withCredentials: url.archive.withCredentials + else + $.addClass root, 'warning' + root.textContent = "Post No.#{postID} was not found." + return board = g.boards[boardID] or new Board boardID