From 42ba2cf94ab9a467fa72c08396e57e09b77a35ad Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 29 Jul 2022 01:11:25 -0700 Subject: [PATCH] im stuff --- .../src/server/api/endpoints/notes/recommended-timeline.ts | 3 +-- 1 file changed, 1 insertion(+), 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 8a124f753..e89f8db3f 100644 --- a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts @@ -59,7 +59,6 @@ export const paramDef = { // eslint-disable-next-line import/no-default-export export default define(meta, paramDef, async (ps, user) => { const m = await fetchMeta(); - const instances = m.recommendedInstances; if (m.disableRecommendedTimeline) { if (user == null || (!user.isAdmin && !user.isModerator)) { throw new ApiError(meta.errors.rtlDisabled); @@ -71,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(new Brackets(qb => { - qb.where('note.userHost IN (:instances)', { instances: instances }) + qb.where('note.userHost IN (:instances)', { instances: m.recommendedInstances }) .orWhere('note.userHost IS NULL'); })) .andWhere('(note.visibility = \'public\')')