This commit is contained in:
syuilo
2019-04-07 23:06:07 +09:00
parent fffa32df48
commit d9780606b3
6 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ import { Users } from '../models';
const logger = remoteLogger.createSubLogger('resolve-user');
export default async (username: string, _host: string, option?: any, resync = false): Promise<User> => {
export async function resolveUser(username: string, _host: string, option?: any, resync = false): Promise<User> {
const usernameLower = username.toLowerCase();
if (_host == null) {
@ -73,7 +73,7 @@ export default async (username: string, _host: string, option?: any, resync = fa
logger.info(`return existing remote user: ${acctLower}`);
return user;
};
}
async function resolveSelf(acctLower: string) {
logger.info(`WebFinger for ${chalk.yellow(acctLower)}`);