mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-17 08:09:09 +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 };
|
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}`;
|
return acct.host == null ? acct.username : `${acct.username}@${acct.host}`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user