From 8a14c2b90d2de9b5e0c6468b9f79ea41cad1e3b4 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 24 Aug 2017 16:34:03 -0700 Subject: [PATCH] Fix quote preview bug when reply is in index data but no thread object exists. #1478 --- src/classes/Fetcher.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/classes/Fetcher.coffee b/src/classes/Fetcher.coffee index f67adf4b2..38c846c11 100644 --- a/src/classes/Fetcher.coffee +++ b/src/classes/Fetcher.coffee @@ -5,9 +5,8 @@ class Fetcher return # 4chan X catalog data - if (post = Index.replyData?["#{@boardID}.#{@postID}"]) + if (post = Index.replyData?["#{@boardID}.#{@postID}"]) and (thread = g.threads["#{@boardID}.#{@threadID}"]) board = g.boards[@boardID] - thread = g.threads["#{@boardID}.#{@threadID}"] post = new Post Build.postFromObject(post, @boardID), thread, board post.isFetchedQuote = true Main.callbackNodes 'Post', [post]