mirror of
https://github.com/zadam/trilium.git
synced 2024-09-20 23:55:59 +08:00
clipper endpoint should also scan and download images as a fallback, #2621
This commit is contained in:
parent
d2d2a6c086
commit
18d439dd44
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -949,5 +949,6 @@ module.exports = {
|
|||
triggerNoteTitleChanged,
|
||||
eraseDeletedNotesNow,
|
||||
eraseNotesWithDeleteId,
|
||||
saveNoteRevision
|
||||
saveNoteRevision,
|
||||
downloadImages
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue