Fix punycode deprecation warning (#7426)
This commit is contained in:
parent
1f4ae2f63a
commit
7d2126e2b2
16 changed files with 20 additions and 14 deletions
|
@ -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)}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue