displaying "years" correcty in abyss for old items

This commit is contained in:
2026-05-06 05:28:13 +02:00
parent c9296af0b4
commit b05f0d1d24
6 changed files with 71 additions and 59 deletions

View File

@@ -285,7 +285,7 @@ export default (router, tpl) => {
avatar: row.avatar_file ? `/a/${row.avatar_file}` : (row.avatar ? `/t/${row.avatar}.webp` : '/a/default.png'),
username_color: row.username_color || null,
stamp: row.stamp,
timeago: lib.timeAgo(new Date(row.stamp * 1e3).toISOString()),
timeago: lib.timeAgo(new Date(row.stamp * 1e3).toISOString(), req.lang),
tags: row.tag_list || '',
is_oc: row.is_oc || false,
is_faved: row.is_faved || false,