From 6785f50a1fa05abc659c4ce299cec792982436da Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 7 May 2018 04:08:39 +0900 Subject: 良い感じに MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/remote/resolve-user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/remote') diff --git a/src/remote/resolve-user.ts b/src/remote/resolve-user.ts index e59d19333c..7acbf085a6 100644 --- a/src/remote/resolve-user.ts +++ b/src/remote/resolve-user.ts @@ -1,10 +1,10 @@ import { toUnicode, toASCII } from 'punycode'; -import User from '../models/user'; +import User, { IUser } from '../models/user'; import webFinger from './webfinger'; import config from '../config'; import { createPerson } from './activitypub/models/person'; -export default async (username, _host, option?) => { +export default async (username, _host, option?): Promise => { const usernameLower = username.toLowerCase(); const hostAscii = toASCII(_host).toLowerCase(); const host = toUnicode(hostAscii); -- cgit v1.2.3-freya