インデントの誤りを修正

This commit is contained in:
Tatsuya Koishi 2024-01-28 10:59:05 +09:00
parent 5d853f0e01
commit 36cfe398d2

View file

@ -155,15 +155,15 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const defaultTag: string | null = config.tagging?.defaultTag; const defaultTag: string | null = config.tagging?.defaultTag;
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'),
ps.sinceId, ps.untilId) ps.sinceId, ps.untilId)
.andWhere(new Brackets(qb => { .andWhere(new Brackets(qb => {
qb.andWhere('note.visibility = \'public\''); qb.andWhere('note.visibility = \'public\'');
qb.andWhere('note.channelId IS NULL'); qb.andWhere('note.channelId IS NULL');
if (defaultTag == null) { if (defaultTag == null) {
qb.andWhere('note.userHost IS NULL'); qb.andWhere('note.userHost IS NULL');
} else { } else {
qb.andWhere(`':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag) }); qb.andWhere(`':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag) });
} }
})) }))
.innerJoinAndSelect('note.user', 'user') .innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('note.reply', 'reply') .leftJoinAndSelect('note.reply', 'reply')
.leftJoinAndSelect('note.renote', 'renote') .leftJoinAndSelect('note.renote', 'renote')