Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit f3641e5

Browse files
committed
server: Fix fulltext search ignoring buffers
1 parent 8f5859f commit f3641e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/search/expressions/note_content_fulltext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class NoteContentFulltextExp extends Expression {
8686
}
8787
}
8888

89-
if (!content || typeof content !== "string") {
89+
if (!content) {
9090
return;
9191
}
9292

@@ -123,7 +123,7 @@ class NoteContentFulltextExp extends Expression {
123123
return content;
124124
}
125125

126-
preprocessContent(content: string, type: string, mime: string) {
126+
preprocessContent(content: string | Buffer, type: string, mime: string) {
127127
content = utils.normalize(content.toString());
128128

129129
if (type === 'text' && mime === 'text/html') {

0 commit comments

Comments
 (0)