fix(server): Use inner join
https://github.com/syuilo/misskey/issues/6813#issuecomment-803400023
This commit is contained in:
parent
9bb6dc52b8
commit
d7e7848c92
19 changed files with 91 additions and 91 deletions
|
@ -59,11 +59,11 @@ export const meta = {
|
|||
export default define(meta, async (ps, user) => {
|
||||
const query = makePaginationQuery(Notes.createQueryBuilder('note'), ps.sinceId, ps.untilId)
|
||||
.andWhere('note.replyId = :replyId', { replyId: ps.noteId })
|
||||
.leftJoinAndSelect('note.user', 'user')
|
||||
.leftJoinAndSelect('note.reply', 'reply')
|
||||
.leftJoinAndSelect('note.renote', 'renote')
|
||||
.leftJoinAndSelect('reply.user', 'replyUser')
|
||||
.leftJoinAndSelect('renote.user', 'renoteUser');
|
||||
.innerJoinAndSelect('note.user', 'user')
|
||||
.innerJoinAndSelect('note.reply', 'reply')
|
||||
.innerJoinAndSelect('note.renote', 'renote')
|
||||
.innerJoinAndSelect('reply.user', 'replyUser')
|
||||
.innerJoinAndSelect('renote.user', 'renoteUser');
|
||||
|
||||
generateVisibilityQuery(query, user);
|
||||
if (user) generateMutedUserQuery(query, user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue