[backend] Don't join avatar and banner on i/notifications

This was an oversight on the recent database refactor and is no longer required
This commit is contained in:
Laura Hausmann 2023-12-14 20:34:24 +01:00
parent a8da3e94e4
commit 0cb6f578ad
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -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")