This commit is contained in:
ThatOneCalculator 2022-07-29 00:09:49 -07:00
parent 8380487afe
commit 152c8c9cae
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ export default define(meta, paramDef, async (ps, user) => {
//#region Construct query //#region Construct query
const query = makePaginationQuery(Notes.createQueryBuilder('note'), const query = makePaginationQuery(Notes.createQueryBuilder('note'),
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate) ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
.andWhere('(note.visibility = \'public\') AND (note.userHost = ANY(\'recommendedInstances\' FROM \'meta\'))') .andWhere('(note.visibility = \'public\')')
.andWhere('(note.userHost = ANY(\'meta.recommendedInstances\'))')
.innerJoinAndSelect('note.user', 'user') .innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('user.avatar', 'avatar') .leftJoinAndSelect('user.avatar', 'avatar')
.leftJoinAndSelect('user.banner', 'banner') .leftJoinAndSelect('user.banner', 'banner')