1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-27 22:38:39 +09:00

fix(backend): ノートの検索インデックス条件を調整

This commit is contained in:
syuilo 2023-05-05 12:24:29 +09:00
parent b45bc3fd5d
commit 6db37d4fcb

View File

@ -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,