From 21006b9f5b611192d1966fef3d7264187582e0b9 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Sat, 14 May 2022 16:29:58 +1000 Subject: [PATCH] make homepage threads date display based on the thread creation date rather than bump date 1. because its only updated per hour, bump date is almost useless 2. hot threads are only for past 7 days so it it a better way to tell most replied vs most recent --- views/pages/home.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/pages/home.pug b/views/pages/home.pug index 989bc29d..77b2e613 100644 --- a/views/pages/home.pug +++ b/views/pages/home.pug @@ -49,8 +49,8 @@ block content if !post.nomarkup && !post.subject | >>>/#{post.board}/#{post.postId} td - - const bumpDate = new Date(post.bumped); - time.right.reltime(datetime=bumpDate.toISOString()) #{bumpDate.toLocaleString(undefined, {hourCycle:'h23'})} + - const postedDate = new Date(post.date); + time.right.reltime(datetime=postedDate.toISOString()) #{postedDate.toLocaleString(undefined, {hourCycle:'h23'})} if boards && boards.length > 0 +boardtable(true, false) each board in boards