mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
note revisions for images, WIP
This commit is contained in:
@@ -18,6 +18,10 @@ async function getNoteRevision(req) {
|
||||
|
||||
await noteRevision.getContent();
|
||||
|
||||
if (noteRevision.content && ['file', 'image'].includes(noteRevision.type)) {
|
||||
noteRevision.content = noteRevision.content.toString('base64');
|
||||
}
|
||||
|
||||
return noteRevision;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user