oops
This commit is contained in:
parent
6785f50a1f
commit
4955df3911
2 changed files with 8 additions and 3 deletions
|
|
@ -6,6 +6,11 @@ import { createPerson } from './activitypub/models/person';
|
|||
|
||||
export default async (username, _host, option?): Promise<IUser> => {
|
||||
const usernameLower = username.toLowerCase();
|
||||
|
||||
if (_host == null) {
|
||||
return await User.findOne({ usernameLower });
|
||||
}
|
||||
|
||||
const hostAscii = toASCII(_host).toLowerCase();
|
||||
const host = toUnicode(hostAscii);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue