From 1af22f0bc242b4bf645a996284377daf38b65f60 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 28 Jul 2022 22:17:59 -0700 Subject: [PATCH] test --- .../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 cb2a4a7253..1a73644199 100644 --- a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts @@ -29,7 +29,7 @@ export const meta = { errors: { ltlDisabled: { message: 'Recommended timeline has been disabled.', - code: 'LTL_DISABLED', + code: 'RTL_DISABLED', id: '45a6eb02-7695-4393-b023-dd3be9aaaefe', }, }, @@ -68,7 +68,7 @@ export default define(meta, paramDef, async (ps, user) => { //#region Construct query const query = makePaginationQuery(Notes.createQueryBuilder('note'), ps.sinceId, ps.untilId, ps.sinceDate, ps.untilDate) - .andWhere('(note.visibility = \'public\') AND (note.userHost = ANY(meta.recommendedInstances))') + .andWhere('(note.visibility = \'public\')') // AND (note.userHost = ANY(meta.recommendedInstances))') .innerJoinAndSelect('note.user', 'user') .leftJoinAndSelect('user.avatar', 'avatar') .leftJoinAndSelect('user.banner', 'banner')