diff --git a/packages/backend/src/server/api/endpoints/notes/global-timeline.ts b/packages/backend/src/server/api/endpoints/notes/global-timeline.ts index 54d0a5425d..03a5535a8c 100644 --- a/packages/backend/src/server/api/endpoints/notes/global-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/global-timeline.ts @@ -79,12 +79,7 @@ export default define(meta, paramDef, async (ps, user) => { ps.untilDate, ) .andWhere("note.visibility = 'public'") - .andWhere("note.channelId IS NULL") - .innerJoinAndSelect("note.user", "user") - .leftJoinAndSelect("note.reply", "reply") - .leftJoinAndSelect("note.renote", "renote") - .leftJoinAndSelect("reply.user", "replyUser") - .leftJoinAndSelect("renote.user", "renoteUser"); + .andWhere("note.channelId IS NULL"); generateRepliesQuery(query, ps.withReplies, user); if (user) { diff --git a/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts b/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts index fef58df860..ca2c516f3a 100644 --- a/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts @@ -95,11 +95,6 @@ export default define(meta, paramDef, async (ps, user) => { ).orWhere("(note.visibility = 'public') AND (note.userHost IS NULL)"); }), ) - .innerJoinAndSelect("note.user", "user") - .leftJoinAndSelect("note.reply", "reply") - .leftJoinAndSelect("note.renote", "renote") - .leftJoinAndSelect("reply.user", "replyUser") - .leftJoinAndSelect("renote.user", "renoteUser") .setParameters(followingQuery.getParameters()); generateChannelQuery(query, user); diff --git a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts index 82e93e371f..8deb76d591 100644 --- a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts @@ -87,19 +87,7 @@ export default define(meta, paramDef, async (ps, user) => { ps.untilId, ps.sinceDate, ps.untilDate, - ) - .andWhere("(note.visibility = 'public') AND (note.userHost IS NULL)") - .innerJoinAndSelect("note.user", "user") - .leftJoinAndSelect("user.avatar", "avatar") - .leftJoinAndSelect("user.banner", "banner") - .leftJoinAndSelect("note.reply", "reply") - .leftJoinAndSelect("note.renote", "renote") - .leftJoinAndSelect("reply.user", "replyUser") - .leftJoinAndSelect("replyUser.avatar", "replyUserAvatar") - .leftJoinAndSelect("replyUser.banner", "replyUserBanner") - .leftJoinAndSelect("renote.user", "renoteUser") - .leftJoinAndSelect("renoteUser.avatar", "renoteUserAvatar") - .leftJoinAndSelect("renoteUser.banner", "renoteUserBanner"); + ).andWhere("(note.visibility = 'public') AND (note.userHost IS NULL)"); generateChannelQuery(query, user); generateRepliesQuery(query, ps.withReplies, user);