From 179a4f83bcd3bd6b2a943d7b1f82d2404eb683eb Mon Sep 17 00:00:00 2001 From: deadvey Date: Thu, 2 Oct 2025 10:47:38 +0100 Subject: [PATCH] Bug fix, most recent post would not show in the post's permalink due to an indexing bug, pretty simple fix, I'm just a moron. --- src/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data.js b/src/data.js index 8665f31..e72640e 100644 --- a/src/data.js +++ b/src/data.js @@ -49,7 +49,7 @@ export function getdata(data, index=-1) { if (data == "posts" || data == 'users' || data == 'comments') { let result = func.require_module(`../data/${data}.json`) if (index != -1) { - if (index < result.length-1) { + if (index < result.length) { return result[index] } else {