Skip to content

Commit

Permalink
isIndexableの検索クエリを変更 (#167)
Browse files Browse the repository at this point in the history
Co-authored-by: Esurio <esurio@esurio1673.net>
  • Loading branch information
1673beta and Esurio authored Sep 8, 2024
1 parent bc21f1e commit e9fa7e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/backend/src/core/SearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,11 @@ export class SearchService {
query
.andWhere('note.text ILIKE :q', { q: `%${ sqlLikeEscape(q) }%` })
.orWhere('note.cw ILIKE :q', { q: `%${ sqlLikeEscape(q) }%` })
.innerJoinAndSelect('note.user', 'user')
.innerJoinAndSelect('note.user', 'user', 'user.isIndexable = true')
.leftJoinAndSelect('note.reply', 'reply')
.leftJoinAndSelect('note.renote', 'renote')
.leftJoinAndSelect('reply.user', 'replyUser')
.leftJoinAndSelect('renote.user', 'renoteUser')
.andWhere('user.isIndexable = true')
.andWhere('user.isSensitive = false');

if (opts.host) {
Expand Down

0 comments on commit e9fa7e5

Please sign in to comment.