From f10d5457ae947e4806ffc228613994401a2a1d86 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 28 Oct 2024 18:49:50 +0800 Subject: [PATCH] Show relative time on large post too --- src/components/status.jsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/components/status.jsx b/src/components/status.jsx index 2e8bf83f..f0975d13 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -2267,6 +2267,19 @@ function Status({ /> */} {_(visibilityText[visibility])} •{' '} + { + // within a day + new Date().getTime() - createdAtDate.getTime() < + 86400000 && ( + <> + {' '} + ‒{' '} + + ) + }