Revert "fix(server): Use inner join"

This reverts commit d7e7848c92.
This commit is contained in:
syuilo 2021-03-21 12:31:56 +09:00
parent e987a50e9f
commit c52b504140
19 changed files with 91 additions and 91 deletions

View file

@ -63,11 +63,11 @@ export default define(meta, async (ps, user) => {
.where(`:meId = ANY(note.mentions)`, { meId: user.id })
.orWhere(`:meId = ANY(note.visibleUserIds)`, { meId: user.id });
}))
.innerJoinAndSelect('note.user', 'user')
.innerJoinAndSelect('note.reply', 'reply')
.innerJoinAndSelect('note.renote', 'renote')
.innerJoinAndSelect('reply.user', 'replyUser')
.innerJoinAndSelect('renote.user', 'renoteUser');
.leftJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('note.reply', 'reply')
.leftJoinAndSelect('note.renote', 'renote')
.leftJoinAndSelect('reply.user', 'replyUser')
.leftJoinAndSelect('renote.user', 'renoteUser');
generateVisibilityQuery(query, user);
generateMutedUserQuery(query, user);