From 6db37d4fcbdd503f1fd10f214670c92b2d69e0de Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 5 May 2023 12:24:29 +0900 Subject: [PATCH] =?UTF-8?q?fix(backend):=20=E3=83=8E=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=81=AE=E6=A4=9C=E7=B4=A2=E3=82=A4=E3=83=B3=E3=83=87=E3=83=83?= =?UTF-8?q?=E3=82=AF=E3=82=B9=E6=9D=A1=E4=BB=B6=E3=82=92=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/SearchService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/backend/src/core/SearchService.ts b/packages/backend/src/core/SearchService.ts index 67332581f..05052620e 100644 --- a/packages/backend/src/core/SearchService.ts +++ b/packages/backend/src/core/SearchService.ts @@ -95,6 +95,9 @@ export class SearchService { @bindThis public async indexNote(note: Note): Promise { + if (note.text == null && note.cw == null) return; + if (!['home', 'public'].includes(note.visibility)) return; + if (this.meilisearch) { this.meilisearchNoteIndex!.addDocuments([{ id: note.id,