mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
try @Johann150's solution :)
This commit is contained in:
parent
f3ba1742b1
commit
acb27d13f5
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,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 meta.recommendedInstances) OR (note.userHost IS NULL)')
|
||||
.andWhere('(note.userHost IN :instances) OR (note.userHost IS NULL)', { instances: m.recommendedInstances })
|
||||
.innerJoinAndSelect('note.user', 'user')
|
||||
.leftJoinAndSelect('user.avatar', 'avatar')
|
||||
.leftJoinAndSelect('user.banner', 'banner')
|
||||
|
|
Loading…
Reference in a new issue