mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	Fix: Unexpected remote user is selected (#3032)
This commit is contained in:
		
							parent
							
								
									479d7e0087
								
							
						
					
					
						commit
						518646b925
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -8,7 +8,7 @@ export default async (username: string, _host: string, option?: any): Promise<IU
 | 
				
			||||||
	const usernameLower = username.toLowerCase();
 | 
						const usernameLower = username.toLowerCase();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (_host == null) {
 | 
						if (_host == null) {
 | 
				
			||||||
		return await User.findOne({ usernameLower });
 | 
							return await User.findOne({ usernameLower, host: null });
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const hostAscii = toASCII(_host).toLowerCase();
 | 
						const hostAscii = toASCII(_host).toLowerCase();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue