From b9778e7fc8a3015771db78e8b51bae3906709fa4 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Wed, 13 Aug 2025 00:41:00 -0400 Subject: [PATCH] remove extra relations from FanoutTimelineEndpointService --- .../src/core/FanoutTimelineEndpointService.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/backend/src/core/FanoutTimelineEndpointService.ts b/packages/backend/src/core/FanoutTimelineEndpointService.ts index 1a4af8cf1e..a8c124077e 100644 --- a/packages/backend/src/core/FanoutTimelineEndpointService.ts +++ b/packages/backend/src/core/FanoutTimelineEndpointService.ts @@ -202,18 +202,9 @@ export class FanoutTimelineEndpointService { .innerJoinAndSelect('note.user', 'user') .leftJoinAndSelect('note.reply', 'reply') .leftJoinAndSelect('note.renote', 'renote') - .leftJoinAndSelect('reply.user', 'replyUser') - .leftJoinAndSelect('renote.user', 'renoteUser') .leftJoinAndSelect('note.channel', 'channel') - .leftJoinAndSelect('note.userInstance', 'userInstance') - .leftJoinAndSelect('note.replyUserInstance', 'replyUserInstance') - .leftJoinAndSelect('note.renoteUserInstance', 'renoteUserInstance') - - // These are used to ensure full data for boosted replies. - // Without loading these relations, certain filters may fail open. - .leftJoinAndSelect('renote.reply', 'renoteReply') - .leftJoinAndSelect('renote.reply.user', 'renoteReplyUser') - .leftJoinAndSelect('renote.replyUserInstance', 'renoteReplyUserInstance'); + .leftJoinAndSelect('reply.user', 'replyUser') + .leftJoinAndSelect('renote.user', 'renoteUser'); const notes = (await query.getMany()).filter(noteFilter);