mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	fix
This commit is contained in:
		
							parent
							
								
									d0aee58599
								
							
						
					
					
						commit
						f45059b7b1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -173,7 +173,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
 | 
			
		|||
			if (ps.mutedWords !== undefined) {
 | 
			
		||||
				// TODO: ちゃんと数える
 | 
			
		||||
				const length = JSON.stringify(ps.mutedWords).length;
 | 
			
		||||
				if (length > (await this.roleService.getUserRoleOptions(user.id)).antennaLimit) {
 | 
			
		||||
				if (length > (await this.roleService.getUserRoleOptions(user.id)).wordMuteLimit) {
 | 
			
		||||
					throw new ApiError(meta.errors.tooManyMutedWords);
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue