clipper endpoint should also scan and download images as a fallback, #2621

This commit is contained in:
zadam 2022-02-14 20:50:50 +01:00
parent d2d2a6c086
commit 18d439dd44
2 changed files with 5 additions and 1 deletions

View File

@ -144,6 +144,9 @@ function processContent(images, note, content) {
} }
} }
// fallback if parsing/downloading images fails for some reason on the extension side (
rewrittenContent = noteService.downloadImages(note.noteId, rewrittenContent);
return rewrittenContent; return rewrittenContent;
} }

View File

@ -949,5 +949,6 @@ module.exports = {
triggerNoteTitleChanged, triggerNoteTitleChanged,
eraseDeletedNotesNow, eraseDeletedNotesNow,
eraseNotesWithDeleteId, eraseNotesWithDeleteId,
saveNoteRevision saveNoteRevision,
downloadImages
}; };