Skip to content

Build your personal knowledge base with Trilium Notes

Merge branch 'stable'

zadame2cb3c0d1454
diff --cc src/services/notes.js
index 52bf0c4d23,8da31c6a9e..9c94ae804f
--- a/src/services/notes.js
+++ b/src/services/notes.js
@@@ -493,8 -493,8 +493,8 @@@ async function downloadImage(noteId, im
const parsedUrl = url.parse(imageUrl);
const title = path.basename(parsedUrl.pathname);
- const imageService = require('../services/image');
+ const imageService = require('../services/image.js');
- const {attachment} = imageService.saveImageToAttachment(noteId, imageBuffer, title, true, true);
+ const attachment = imageService.saveImageToAttachment(noteId, imageBuffer, title, true, true);
imageUrlToAttachmentIdMapping[imageUrl] = attachment.attachmentId;