mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 11:40:49 +00:00
Fix: Unexpected remote user is selected (#3032)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user