mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	fix
This commit is contained in:
		
							parent
							
								
									f3e43a0fc6
								
							
						
					
					
						commit
						363eb73fb3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -82,7 +82,7 @@ export class SignupService {
 | 
			
		|||
 | 
			
		||||
		const isTheFirstUser = (await this.usersRepository.countBy({ host: IsNull() })) === 0;
 | 
			
		||||
 | 
			
		||||
		if (!opts.ignorePreservedUsernames || !isTheFirstUser) {
 | 
			
		||||
		if (!opts.ignorePreservedUsernames && !isTheFirstUser) {
 | 
			
		||||
			const instance = await this.metaService.fetch(true);
 | 
			
		||||
			const isPreserved = instance.preservedUsernames.map(x => x.toLowerCase()).includes(username.toLowerCase());
 | 
			
		||||
			if (isPreserved) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue