diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-21 12:33:37 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-21 12:33:37 +0900 |
| commit | 70b129cc421c10260a298519521ca646cbc59ab8 (patch) | |
| tree | 920ed074cbfa05497cfda98c2aaa8c06a65d77b2 /src/server/api/endpoints/notes/featured.ts | |
| parent | Revert "fix(server): Use inner join" (diff) | |
| download | sharkey-70b129cc421c10260a298519521ca646cbc59ab8.tar.gz sharkey-70b129cc421c10260a298519521ca646cbc59ab8.tar.bz2 sharkey-70b129cc421c10260a298519521ca646cbc59ab8.zip | |
fix(server): Use inner join
Diffstat (limited to 'src/server/api/endpoints/notes/featured.ts')
| -rw-r--r-- | src/server/api/endpoints/notes/featured.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts index 6c416b1c04..b3dffa4272 100644 --- a/src/server/api/endpoints/notes/featured.ts +++ b/src/server/api/endpoints/notes/featured.ts @@ -49,7 +49,7 @@ export default define(meta, async (ps, user) => { .andWhere(`note.score > 0`) .andWhere(`note.createdAt > :date`, { date: new Date(Date.now() - day) }) .andWhere(`note.visibility = 'public'`) - .leftJoinAndSelect('note.user', 'user') + .innerJoinAndSelect('note.user', 'user') .leftJoinAndSelect('note.reply', 'reply') .leftJoinAndSelect('note.renote', 'renote') .leftJoinAndSelect('reply.user', 'replyUser') |