fix: check isIndexable in built-in post search

This commit is contained in:
naskya 2023-10-29 18:27:38 +09:00
parent 5a35e903f4
commit 6609daace4
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -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")