From a8b3bdaebdee1c9060891a094e264723f9910bdd Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 4 Aug 2022 14:16:22 -0700 Subject: [PATCH] stuff? --- .../src/server/api/endpoints/notes/recommended-timeline.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 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 da6fa8158..0e34d16cf 100644 --- a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts @@ -70,12 +70,11 @@ export default define(meta, paramDef, async (ps, user) => { .select('meta.recommendedInstances') .where('meta.recommendedInstances = ANY'); - //#region Construct query const query = makePaginationQuery(Notes.createQueryBuilder('note'), ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate) .andWhere(new Brackets(qb => { - qb.where(`((note.userHost IN (${ recommendedQuery.getQuery() }))`) - .orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)'); + qb.where(`((note.userHost IN (${ recommendedQuery.getQuery() }))`); + // .orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)'); })) .andWhere('(note.visibility = \'public\')') .innerJoinAndSelect('note.user', 'user')