mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +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