Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net committed Sep 24, 2024
1 parent 74aa8ef commit 06615ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ export class NoteCreateService implements OnApplicationShutdown {
}

// Register to search database
if (note.text !== null && note.renoteId !== null) this.searchService.indexNote(note);//MeiliSearch
if (note.text !== null && note.cw !== null) this.searchService.indexNote(note);//MeiliSearch
this.advancedSearchService.indexNote(note, data.poll?.choices ?? undefined); //OpenSearch
}

Expand Down
2 changes: 1 addition & 1 deletion packages/backend/test/e2e/search-notes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-FileCopyrightText: syuilo and misskey-project, yojo-art team
* SPDX-License-Identifier: AGPL-3.0-only
*/

Expand Down

0 comments on commit 06615ab

Please sign in to comment.