Skip to content
Snippets Groups Projects
Commit 518646b9 authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

Fix: Unexpected remote user is selected (#3032)

parent 479d7e00
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ export default async (username: string, _host: string, option?: any): Promise<IU
const usernameLower = username.toLowerCase();
if (_host == null) {
return await User.findOne({ usernameLower });
return await User.findOne({ usernameLower, host: null });
}
const hostAscii = toASCII(_host).toLowerCase();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment