mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
yet another refactoring of working with note's payload/content
This commit is contained in:
@@ -13,10 +13,10 @@ async function getNote(req) {
|
||||
}
|
||||
|
||||
if (note.isStringNote()) {
|
||||
const noteContent = await note.getNoteContent();
|
||||
await note.getContent();
|
||||
|
||||
if (note.type === 'file') {
|
||||
noteContent.content = noteContent.content.substr(0, 10000);
|
||||
note.content = note.content.substr(0, 10000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user