mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
serialize binary note content into base64, incremented sync version
This commit is contained in:
@@ -40,7 +40,7 @@ async function updateEntity(sync, entity, sourceId) {
|
||||
|
||||
function deserializeNoteContentBuffer(note) {
|
||||
if (note.content !== null && (note.type === 'file' || note.type === 'image')) {
|
||||
note.content = new Buffer(note.content, 'binary');
|
||||
note.content = Buffer.from(note.content, 'base64');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user