remove unnecessary joins
These joins are no longer necessary as of commit c35372a20d22cddb75e93a0b407f2b652cd7faf0. It seems they are bad enough for performance to break installs.
This commit is contained in:
parent
5972640a17
commit
3b40c7d081
|
@ -51,14 +51,6 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||||
.innerJoinAndSelect('note.user', 'user')
|
.innerJoinAndSelect('note.user', 'user')
|
||||||
.leftJoinAndSelect('user.avatar', 'avatar')
|
.leftJoinAndSelect('user.avatar', 'avatar')
|
||||||
.leftJoinAndSelect('user.banner', 'banner')
|
.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');
|
|
||||||
|
|
||||||
generateVisibilityQuery(query, user);
|
generateVisibilityQuery(query, user);
|
||||||
if (user) {
|
if (user) {
|
||||||
|
|
Loading…
Reference in New Issue