This commit is contained in:
ThatOneCalculator 2022-07-29 00:30:42 -07:00
parent b53bbc960f
commit b51a8750a3

View file

@ -70,7 +70,7 @@ export default define(meta, paramDef, async (ps, user) => {
const query = makePaginationQuery(Notes.createQueryBuilder('note'),
ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate)
.andWhere('(note.visibility = \'public\')')
.andWhere('(note.userHost IN :instances) OR (note.userHost IS NULL)', { instances: instances })
.andWhere('(note.userHost IN (:instances)) OR (note.userHost IS NULL)', { instances: instances })
.innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('user.avatar', 'avatar')
.leftJoinAndSelect('user.banner', 'banner')