From a4d5faa789b5a67c2766b030a078173452c50023 Mon Sep 17 00:00:00 2001 From: marihachi Date: Sat, 15 May 2021 17:42:48 +0900 Subject: [PATCH] Rename render acct (#5) --- src/acct.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acct.ts b/src/acct.ts index 04ce78045..c32cee86c 100644 --- a/src/acct.ts +++ b/src/acct.ts @@ -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}`; }