Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
server: Fix fulltext search ignoring buffers
Elian Doranf3641e5fa617
diff --git a/src/services/search/expressions/note_content_fulltext.ts b/src/services/search/expressions/note_content_fulltext.tsindex 79d9b5376f..16291d6176 100644--- a/src/services/search/expressions/note_content_fulltext.ts+++ b/src/services/search/expressions/note_content_fulltext.ts@@ -86,7 +86,7 @@ class NoteContentFulltextExp extends Expression {}}- if (!content || typeof content !== "string") {+ if (!content) {return;}@@ -123,7 +123,7 @@ class NoteContentFulltextExp extends Expression {return content;}- preprocessContent(content: string, type: string, mime: string) {+ preprocessContent(content: string | Buffer, type: string, mime: string) {content = utils.normalize(content.toString());if (type === 'text' && mime === 'text/html') {