mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 07:13:09 +02:00
fix(backend): ノートの検索インデックス条件を調整
This commit is contained in:
parent
b45bc3fd5d
commit
6db37d4fcb
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ export class SearchService {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async indexNote(note: Note): Promise<void> {
|
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) {
|
if (this.meilisearch) {
|
||||||
this.meilisearchNoteIndex!.addDocuments([{
|
this.meilisearchNoteIndex!.addDocuments([{
|
||||||
id: note.id,
|
id: note.id,
|
||||||
|
|
Loading…
Reference in a new issue