forked from naskya/firefish
fix: check isIndexable in built-in post search
This commit is contained in:
parent
5a35e903f4
commit
6609daace4
1 changed files with 1 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue