mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
note content refactoring, WIP
This commit is contained in:
@@ -51,7 +51,7 @@ async function downloadNoteFile(noteId, res) {
|
||||
res.setHeader('Content-Disposition', utils.getContentDisposition(fileName));
|
||||
res.setHeader('Content-Type', note.mime);
|
||||
|
||||
res.send(note.content);
|
||||
res.send((await note.getNoteContent()).content);
|
||||
}
|
||||
|
||||
async function downloadFile(req, res) {
|
||||
|
||||
@@ -21,7 +21,7 @@ async function returnImage(req, res) {
|
||||
|
||||
res.set('Content-Type', image.mime);
|
||||
|
||||
res.send(image.content);
|
||||
res.send((await note.getNoteContent()).content);
|
||||
}
|
||||
|
||||
async function uploadImage(req) {
|
||||
|
||||
Reference in New Issue
Block a user