forked from FoundKeyGang/FoundKey
remove unnecessary joins
These joins are no longer necessary as of commit
c35372a20d
. It seems they are bad enough
for performance to break installs.
This commit is contained in:
parent
9ee609d700
commit
4bc9610d8b
1 changed files with 0 additions and 8 deletions
|
@ -55,14 +55,6 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
.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');
|
||||
|
||||
generateVisibilityQuery(query, user);
|
||||
if (user) {
|
||||
|
|
Loading…
Reference in a new issue