From e6f1a06e07628f8bdce77d460b09d055160855ab Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Thu, 20 Jul 2023 14:28:33 +0530 Subject: [PATCH] fix: viewed just now --- server/routes/api/urls/urls.ts | 2 +- shared/i18n/locales/en_US/translation.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/routes/api/urls/urls.ts b/server/routes/api/urls/urls.ts index a55f31674d..646207a348 100644 --- a/server/routes/api/urls/urls.ts +++ b/server/routes/api/urls/urls.ts @@ -52,7 +52,7 @@ router.post( const lastActiveAt = mentionedUser.lastActiveAt; let description; if (lastViewedAt && differenceInMinutes(new Date(), lastViewedAt) < 5) { - description = t("Currently viewing", { ...opts(user) }); + description = t("Viewed just now", { ...opts(user) }); } else if ( lastActiveAt && differenceInMinutes(new Date(), lastActiveAt) < 5 diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 3606725604..0d9b1fb0c3 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -899,6 +899,7 @@ "Webhooks can be used to notify your application when events happen in {{appName}}. Events are sent as a https request with a JSON payload in near real-time.": "Webhooks can be used to notify your application when events happen in {{appName}}. Events are sent as a https request with a JSON payload in near real-time.", "Inactive": "Inactive", "Create a webhook": "Create a webhook", + "Viewed just now": "Viewed just now", "Online now • Viewed {{ lastViewedAt }}": "Online now • Viewed {{ lastViewedAt }}", "Online now • Never viewed": "Online now • Never viewed", "Online {{ lastActiveAt }} • Viewed {{ lastViewedAt }}": "Online {{ lastActiveAt }} • Viewed {{ lastViewedAt }}",