Use WHATWG API
> New application code should use the WHATWG API.
This commit is contained in:
parent
736fdabc1d
commit
1331f0b953
8 changed files with 0 additions and 8 deletions
|
@ -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)}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue