fix(server): Use inner join

This commit is contained in:
syuilo
2021-03-21 12:33:37 +09:00
parent c52b504140
commit 70b129cc42
18 changed files with 18 additions and 18 deletions

View File

@@ -127,7 +127,7 @@ export default define(meta, async (ps, user) => {
qb.where(`((note.userId IN (${ followingQuery.getQuery() })) OR (note.userId = :meId))`, { meId: user.id })
.orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)');
}))
.leftJoinAndSelect('note.user', 'user')
.innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('note.reply', 'reply')
.leftJoinAndSelect('note.renote', 'renote')
.leftJoinAndSelect('reply.user', 'replyUser')