mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix image being redownloaded from localhost
This commit is contained in:
		| @@ -290,7 +290,7 @@ async function downloadImages(noteId, content) { | ||||
|     while (match = re.exec(origContent)) { | ||||
|         const url = match[1]; | ||||
|  | ||||
|         if (!url.startsWith('api/images/') | ||||
|         if (!url.includes('api/images/') | ||||
|             // this is and exception for the web clipper's "imageId" | ||||
|             && (url.length !== 20 || url.toLowerCase().startsWith('http'))) { | ||||
|             if (url in downloadImagePromises) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user