mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 16:36:44 -06:00
Rename render acct (#5)
This commit is contained in:
parent
148730dac3
commit
a4d5faa789
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue