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 009827cdc0..c4483f6fd0 100644 --- a/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/recommended-timeline.ts @@ -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 FROM \'meta\'))') + .andWhere('(note.visibility = \'public\') AND (note.userHost = ANY(\'recommendedInstances\' FROM \'meta\'))') .innerJoinAndSelect('note.user', 'user') .leftJoinAndSelect('user.avatar', 'avatar') .leftJoinAndSelect('user.banner', 'banner') diff --git a/packages/backend/src/server/api/stream/channels/recommended-timeline.ts b/packages/backend/src/server/api/stream/channels/recommended-timeline.ts index b160b813b2..03fc33b3a8 100644 --- a/packages/backend/src/server/api/stream/channels/recommended-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/recommended-timeline.ts @@ -26,9 +26,6 @@ export default class extends Channel { private async onNote(note: Packed<'Note'>) { const meta = await fetchMeta(); - console.log(meta.disableRecommendedTimeline); - console.log(meta.recommendedInstances); - console.log(note.user.host); if (note.user.host !== null && !meta.recommendedInstances.includes(note.user.host)) return; if (note.visibility !== 'public') return; if (note.channelId != null && !this.followingChannels.has(note.channelId)) return;