mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-03 21:42:27 +01:00
インデントの誤りを修正
This commit is contained in:
parent
5d853f0e01
commit
36cfe398d2
1 changed files with 9 additions and 9 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue