enhance(search): meilisearch indexing all notes

This commit is contained in:
オスカー、 2024-05-13 21:50:50 +09:00
parent 86b0951ba3
commit 34bf2ab0dd
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -114,7 +114,7 @@ export class SearchService {
@bindThis @bindThis
public async indexNote(note: MiNote): Promise<void> { public async indexNote(note: MiNote): Promise<void> {
if (note.text == null && note.cw == null) return; if (note.text == null && note.cw == null) return;
if (!['home', 'public'].includes(note.visibility)) return; // if (!['home', 'public'].includes(note.visibility)) return;
if (this.meilisearch) { if (this.meilisearch) {
switch (this.meilisearchIndexScope) { switch (this.meilisearchIndexScope) {