Use WHATWG API

> New application code should use the WHATWG API.
This commit is contained in:
syuilo
2019-06-18 15:27:13 +09:00
parent 736fdabc1d
commit 1331f0b953
8 changed files with 0 additions and 8 deletions

View File

@@ -1,6 +1,5 @@
import config from '../config';
import { toASCII } from 'punycode';
import { URL } from 'url';
export function getFullApAccount(username: string, host: string | null) {
return host ? `${username}@${toPuny(host)}` : `${username}@${toPuny(config.host)}`;