From f96810f70c59b4b248735ee40061b1fefaa9245d Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 24 Aug 2020 08:39:47 -0700 Subject: [PATCH] Update for 4chan /vg/ change. --- src/General/Index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 4830517c5..8afbf3366 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -714,7 +714,7 @@ Index = else thread = new Thread ID, g.BOARD newThreads.push thread - lastPost = if threadData.last_replies then threadData.last_replies[threadData.last_replies.length - 1].no else ID + lastPost = if threadData.last_replies and threadData.last_replies.length then threadData.last_replies[threadData.last_replies.length - 1].no else ID thread.lastPost = lastPost if lastPost > thread.lastPost thread.json = threadData threads.push thread