mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 22:49:24 +09:00
Rename render acct (#5)
This commit is contained in:
parent
148730dac3
commit
a4d5faa789
@ -9,6 +9,6 @@ export function parse(acct: string): Acct {
|
||||
return { username: split[0], host: split[1] || null };
|
||||
}
|
||||
|
||||
export function render(acct: Acct): string {
|
||||
export function toString(acct: Acct): string {
|
||||
return acct.host == null ? acct.username : `${acct.username}@${acct.host}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user