diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-07 04:08:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-07 04:08:39 +0900 |
| commit | 6785f50a1fa05abc659c4ce299cec792982436da (patch) | |
| tree | 1611c8484e3c947efafbe741742189b089804597 /src/remote | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| download | sharkey-6785f50a1fa05abc659c4ce299cec792982436da.tar.gz sharkey-6785f50a1fa05abc659c4ce299cec792982436da.tar.bz2 sharkey-6785f50a1fa05abc659c4ce299cec792982436da.zip | |
良い感じに
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/resolve-user.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<IUser> => { const usernameLower = username.toLowerCase(); const hostAscii = toASCII(_host).toLowerCase(); const host = toUnicode(hostAscii); |