summaryrefslogtreecommitdiff
path: root/packages/backend/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-05-05 12:24:29 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-05-05 12:24:29 +0900
commit6db37d4fcbdd503f1fd10f214670c92b2d69e0de (patch)
treeafe46fbbcd11e92d6bd2af9aee577036dab196d4 /packages/backend/src
parentfeat(frontend): in channel search (diff)
downloadsharkey-6db37d4fcbdd503f1fd10f214670c92b2d69e0de.tar.gz
sharkey-6db37d4fcbdd503f1fd10f214670c92b2d69e0de.tar.bz2
sharkey-6db37d4fcbdd503f1fd10f214670c92b2d69e0de.zip
fix(backend): ノートの検索インデックス条件を調整
Diffstat (limited to 'packages/backend/src')
-rw-r--r--packages/backend/src/core/SearchService.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/backend/src/core/SearchService.ts b/packages/backend/src/core/SearchService.ts
index 67332581f7..05052620ed 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<void> {
+ if (note.text == null && note.cw == null) return;
+ if (!['home', 'public'].includes(note.visibility)) return;
+
if (this.meilisearch) {
this.meilisearchNoteIndex!.addDocuments([{
id: note.id,