From 6609daace40abb9da39671ea44e43eb58e9d12fd Mon Sep 17 00:00:00 2001 From: naskya Date: Sun, 29 Oct 2023 18:27:38 +0900 Subject: [PATCH] fix: check isIndexable in built-in post search --- packages/backend/src/server/api/endpoints/notes/search.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/server/api/endpoints/notes/search.ts b/packages/backend/src/server/api/endpoints/notes/search.ts index 716349fbb..fe1d3d4c2 100644 --- a/packages/backend/src/server/api/endpoints/notes/search.ts +++ b/packages/backend/src/server/api/endpoints/notes/search.ts @@ -94,6 +94,7 @@ export default define(meta, paramDef, async (ps, me) => { .andWhere("note.text &@~ :q", { q: `${sqlLikeEscape(ps.query)}` }) .andWhere("note.visibility = 'public'") .innerJoinAndSelect("note.user", "user") + .andWhere("user.isIndexable = TRUE") .leftJoinAndSelect("user.avatar", "avatar") .leftJoinAndSelect("user.banner", "banner") .leftJoinAndSelect("note.reply", "reply")