From fac12091538abd282579a6deb2959c9e65f407e2 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 16 Nov 2024 09:57:13 +0800 Subject: [PATCH] Reveal punycodes --- src/components/account-info.jsx | 3 ++- src/locales/en.po | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index 2b1016fc..226194c9 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -2266,9 +2266,10 @@ function AccountHandleInfo({ acct, instance }) { // acct = username or username@server let [username, server] = acct.split('@'); if (!server) server = instance; + const encodedAcct = punycode.toASCII(acct); return (
- + {username} @ {server} diff --git a/src/locales/en.po b/src/locales/en.po index 2fa06cff..a41444c6 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -507,11 +507,11 @@ msgstr "" msgid "Save" msgstr "" -#: src/components/account-info.jsx:2278 +#: src/components/account-info.jsx:2279 msgid "username" msgstr "" -#: src/components/account-info.jsx:2282 +#: src/components/account-info.jsx:2283 msgid "server domain name" msgstr ""