Skip to content

Commit

Permalink
Update search-by-tag.ts
Browse files Browse the repository at this point in the history
Fix position of where clause
  • Loading branch information
moyitpro authored Nov 30, 2023
1 parent 2cbef78 commit b0657bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
) {
super(meta, paramDef, async (ps, me) => {
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), ps.sinceId, ps.untilId)
.andWhere('note.visibility = \'public\'')
.innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('note.reply', 'reply')
.leftJoinAndSelect('note.renote', 'renote')
.leftJoinAndSelect('reply.user', 'replyUser')
.leftJoinAndSelect('renote.user', 'renoteUser')
.andWhere('note.visibility = \'public\'');
.leftJoinAndSelect('renote.user', 'renoteUser');

const meta = await this.metaService.fetch(true);

Expand Down

0 comments on commit b0657bf

Please sign in to comment.