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
|
// acct = username or username@server
|
||||||
let [username, server] = acct.split('@');
|
let [username, server] = acct.split('@');
|
||||||
if (!server) server = instance;
|
if (!server) server = instance;
|
||||||
|
const encodedAcct = punycode.toASCII(acct);
|
||||||
return (
|
return (
|
||||||
<div class="handle-info">
|
<div class="handle-info">
|
||||||
<span class="handle-handle">
|
<span class="handle-handle" title={encodedAcct}>
|
||||||
<b class="handle-username">{username}</b>
|
<b class="handle-username">{username}</b>
|
||||||
<span class="handle-at">@</span>
|
<span class="handle-at">@</span>
|
||||||
<b class="handle-server">{server}</b>
|
<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"
|
msgid "Save"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/account-info.jsx:2278
|
#: src/components/account-info.jsx:2279
|
||||||
msgid "username"
|
msgid "username"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/account-info.jsx:2282
|
#: src/components/account-info.jsx:2283
|
||||||
msgid "server domain name"
|
msgid "server domain name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue