summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/notes/featured.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-21 12:33:37 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-21 12:33:37 +0900
commit70b129cc421c10260a298519521ca646cbc59ab8 (patch)
tree920ed074cbfa05497cfda98c2aaa8c06a65d77b2 /src/server/api/endpoints/notes/featured.ts
parentRevert "fix(server): Use inner join" (diff)
downloadsharkey-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.ts2
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')