Fixed file extension issue on urls
This commit is contained in:
		
							parent
							
								
									774f63625d
								
							
						
					
					
						commit
						493a551586
					
				@ -76,7 +76,8 @@ impl Image {
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if !image_query.image_type.is_empty() {
 | 
					                if !image_query.image_type.is_empty() {
 | 
				
			||||||
                    let path = img.link.to_file_path().unwrap();
 | 
					                    let path = img.link.path();
 | 
				
			||||||
 | 
					                    let path = PathBuf::from(path);
 | 
				
			||||||
                    let ext = path.extension().unwrap().to_str().unwrap();
 | 
					                    let ext = path.extension().unwrap().to_str().unwrap();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if !image_query.image_type.contains(&ext.to_string())
 | 
					                    if !image_query.image_type.contains(&ext.to_string())
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user