mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-31 13:34:12 +00:00 
			
		
		
		
	only require alt-text on image/video/audio - fixes #536
This commit is contained in:
		
							parent
							
								
									7dfe9087b2
								
							
						
					
					
						commit
						d433c336d8
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -777,7 +777,9 @@ async function post(ev?: MouseEvent) { | |||
| 	if (defaultStore.state.warnMissingAltText) { | ||||
| 		const filesData = toRaw(files.value); | ||||
| 
 | ||||
| 		const isMissingAltText = filesData.some(file => !file.comment); | ||||
| 		const isMissingAltText = filesData.filter( | ||||
| 			file => file.type.startsWith('image/') || file.type.startsWith('video/') || file.type.startsWith('audio/') | ||||
| 		).some(file => !file.comment); | ||||
| 
 | ||||
| 		if (isMissingAltText) { | ||||
| 			const { canceled, result } = await os.actions({ | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue