From f2b59c18bb3d91b8efb5f47fcb5544b3d8fe650d Mon Sep 17 00:00:00 2001 From: some random guy Date: Fri, 26 Jan 2024 21:05:47 +0100 Subject: [PATCH] Fix live posts for previously unseen boards. Close #553. --- gulp/res/js/live.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp/res/js/live.js b/gulp/res/js/live.js index 2c1c71c3..65bbec65 100644 --- a/gulp/res/js/live.js +++ b/gulp/res/js/live.js @@ -111,7 +111,7 @@ window.addEventListener('settingsReady', function() { //after domcontentloaded //insert at end of thread, but insert at top for globalmanage //console.log('got new post', data); const postData = data; - lastPostIds[postData.board] = Math.max(lastPostIds[postData.board], postData.postId); + lastPostIds[postData.board] = Math.max(lastPostIds[postData.board] || 0, postData.postId); //create a new post const postHtml = post({ viewRawIp,