diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-05 12:24:29 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-05 12:24:29 +0900 |
| commit | 6db37d4fcbdd503f1fd10f214670c92b2d69e0de (patch) | |
| tree | afe46fbbcd11e92d6bd2af9aee577036dab196d4 /packages/backend/src/core | |
| parent | feat(frontend): in channel search (diff) | |
| download | sharkey-6db37d4fcbdd503f1fd10f214670c92b2d69e0de.tar.gz sharkey-6db37d4fcbdd503f1fd10f214670c92b2d69e0de.tar.bz2 sharkey-6db37d4fcbdd503f1fd10f214670c92b2d69e0de.zip | |
fix(backend): ノートの検索インデックス条件を調整
Diffstat (limited to 'packages/backend/src/core')
| -rw-r--r-- | packages/backend/src/core/SearchService.ts | 3 |
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, |