This commit is contained in:
		
							parent
							
								
									37865cb381
								
							
						
					
					
						commit
						4fb7ee760a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -15,7 +15,7 @@ export default async (username: string, _host: string, option?: any): Promise<IU
 | 
				
			||||||
	const host = toUnicode(hostAscii);
 | 
						const host = toUnicode(hostAscii);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (config.host == host) {
 | 
						if (config.host == host) {
 | 
				
			||||||
		return await User.findOne({ usernameLower });
 | 
							return await User.findOne({ usernameLower, host: null });
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	let user = await User.findOne({ usernameLower, host }, option);
 | 
						let user = await User.findOne({ usernameLower, host }, option);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue