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
indiachan-spamvector
Thomas Lynch 2 years ago
parent e9d01360c9
commit 21006b9f5b
  1. 4
      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

Loading…
Cancel
Save