mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
file revisions preview
This commit is contained in:
@@ -9,8 +9,13 @@ const dateUtils = require('../services/date_utils');
|
||||
async function protectNoteRevisions(note) {
|
||||
for (const revision of await note.getRevisions()) {
|
||||
if (note.isProtected !== revision.isProtected) {
|
||||
const content = await revision.getContent();
|
||||
|
||||
revision.isProtected = note.isProtected;
|
||||
|
||||
// this will force de/encryption
|
||||
await revision.setContent(content);
|
||||
|
||||
await revision.save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user