From 641985737fa2f97f51877883317c0d9f4ae507bc Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 5 Sep 2023 22:02:26 +0200 Subject: [PATCH] fix FNote.getContent() #4210 --- src/public/app/entities/fnote.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/public/app/entities/fnote.js b/src/public/app/entities/fnote.js index 848243fd6..134bac0df 100644 --- a/src/public/app/entities/fnote.js +++ b/src/public/app/entities/fnote.js @@ -120,10 +120,9 @@ class FNote { } async getContent() { - // we're not caching content since these objects are in froca and as such pretty long-lived - const note = await server.get(`notes/${this.noteId}`); + const blob = await this.getBlob(); - return note.content; + return blob?.content; } async getJsonContent() {