mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Reveal punycodes
This commit is contained in:
parent
a73d613dce
commit
fac1209153
2 changed files with 4 additions and 3 deletions
|
@ -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 (
|
||||
<div class="handle-info">
|
||||
<span class="handle-handle">
|
||||
<span class="handle-handle" title={encodedAcct}>
|
||||
<b class="handle-username">{username}</b>
|
||||
<span class="handle-at">@</span>
|
||||
<b class="handle-server">{server}</b>
|
||||
|
|
4
src/locales/en.po
generated
4
src/locales/en.po
generated
|
@ -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 ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue