diff --git a/apps/admin-x-activitypub/src/utils/get-relative-timestamp.ts b/apps/admin-x-activitypub/src/utils/get-relative-timestamp.ts index b36554270f..645fdaf3b1 100644 --- a/apps/admin-x-activitypub/src/utils/get-relative-timestamp.ts +++ b/apps/admin-x-activitypub/src/utils/get-relative-timestamp.ts @@ -26,8 +26,12 @@ export const getRelativeTimestamp = (date: Date): string => { if (interval >= 1) { return `${interval}m`; } + + if (seconds < 1) { + return `Just now`; + } - return `${seconds} seconds`; + return `${seconds}s`; }; export default getRelativeTimestamp; \ No newline at end of file