From 4e549baedc997f16def048ced5128c30061b7909 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 7 Jan 2024 23:45:40 +0100 Subject: [PATCH] fix auto-download of images, closes #4566 --- src/services/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/notes.js b/src/services/notes.js index 6e6bbfd76..7062d1aee 100644 --- a/src/services/notes.js +++ b/src/services/notes.js @@ -494,7 +494,7 @@ async function downloadImage(noteId, imageUrl) { const title = path.basename(parsedUrl.pathname); const imageService = require('../services/image'); - const {attachment} = imageService.saveImageToAttachment(noteId, imageBuffer, title, true, true); + const attachment = imageService.saveImageToAttachment(noteId, imageBuffer, title, true, true); imageUrlToAttachmentIdMapping[imageUrl] = attachment.attachmentId;