From 0cb6f578adb14c91ada68978cbd04ce1d732093d Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 14 Dec 2023 20:34:24 +0100 Subject: [PATCH] [backend] Don't join avatar and banner on i/notifications This was an oversight on the recent database refactor and is no longer required --- packages/backend/src/server/api/endpoints/i/notifications.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/i/notifications.ts b/packages/backend/src/server/api/endpoints/i/notifications.ts index 1dbcac8f9..87177c07e 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications.ts @@ -97,8 +97,6 @@ export default define(meta, paramDef, async (ps, user) => { .andWhere("notification.notifieeId = :meId", { meId: user.id }) .leftJoinAndSelect("notification.notifier", "notifier") .leftJoinAndSelect("notification.note", "note") - .leftJoinAndSelect("notifier.avatar", "notifierAvatar") - .leftJoinAndSelect("notifier.banner", "notifierBanner") .leftJoinAndSelect("note.user", "user") .leftJoinAndSelect("note.reply", "reply") .leftJoinAndSelect("note.renote", "renote")