diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2021-04-04 13:00:39 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-04 13:00:39 +0900 |
| commit | 7d2126e2b200b8fd1d9e8f2d99ada411ef220ff2 (patch) | |
| tree | 7f227998c5b02a63762517deb14050e10513a38c /src/misc/convert-host.ts | |
| parent | Use mfm-js for MFM parsing (#7415) (diff) | |
| download | sharkey-7d2126e2b200b8fd1d9e8f2d99ada411ef220ff2.tar.gz sharkey-7d2126e2b200b8fd1d9e8f2d99ada411ef220ff2.tar.bz2 sharkey-7d2126e2b200b8fd1d9e8f2d99ada411ef220ff2.zip | |
Fix punycode deprecation warning (#7426)
Diffstat (limited to 'src/misc/convert-host.ts')
| -rw-r--r-- | src/misc/convert-host.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/convert-host.ts b/src/misc/convert-host.ts index f8957a64a8..7b0b0acf10 100644 --- a/src/misc/convert-host.ts +++ b/src/misc/convert-host.ts @@ -1,6 +1,6 @@ import { URL } from 'url'; import config from '@/config'; -import { toASCII } from 'punycode'; +import { toASCII } from 'punycode/'; export function getFullApAccount(username: string, host: string | null) { return host ? `${username}@${toPuny(host)}` : `${username}@${toPuny(config.host)}`; |