From 9dd06a7621d1745b30ed1c2b1d94d34143dd638e Mon Sep 17 00:00:00 2001 From: "Acid Chicken (硫酸鶏)" Date: Tue, 5 Feb 2019 17:42:55 +0900 Subject: /.well-known 周りをいい感じに (#4141) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Enhance /.well-known and their friends * Fix bug --- src/misc/acct/parse.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/misc/acct/parse.ts') diff --git a/src/misc/acct/parse.ts b/src/misc/acct/parse.ts index b120746650..e3bed35d8e 100644 --- a/src/misc/acct/parse.ts +++ b/src/misc/acct/parse.ts @@ -1,4 +1,6 @@ -export default (acct: string) => { +import Acct from './type'; + +export default (acct: string): Acct => { if (acct.startsWith('@')) acct = acct.substr(1); const split = acct.split('@', 2); return { username: split[0], host: split[1] || null }; -- cgit v1.2.3-freya