From 20608d9b55b2073b06d026a5ce924bf4c7c6be8b Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 29 Jul 2022 00:35:49 -0700 Subject: [PATCH] stuff --- .../src/server/api/endpoints/notes/recommended-timeline.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts index b3dd9b2de..8a124f753 100644 --- a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts @@ -71,8 +71,8 @@ export default define(meta, paramDef, async (ps, user) => { const query = makePaginationQuery(Notes.createQueryBuilder('note'), ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate) .andWhere(new Brackets(qb => { - qb.where('((note.userHost IN (:instances))', { instances: instances }) - .orWhere('(note.userHost IS NULL)'); + qb.where('note.userHost IN (:instances)', { instances: instances }) + .orWhere('note.userHost IS NULL'); })) .andWhere('(note.visibility = \'public\')') .innerJoinAndSelect('note.user', 'user')