summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-15 12:03:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-15 12:03:00 +0900
commit663b8864c1f7f285aff50474063853738bbdf90d (patch)
tree1736f4e8f426c4526e72679a9ac9e44322568fde /src/server/api/endpoints
parentFix bug (diff)
downloadsharkey-663b8864c1f7f285aff50474063853738bbdf90d.tar.gz
sharkey-663b8864c1f7f285aff50474063853738bbdf90d.tar.bz2
sharkey-663b8864c1f7f285aff50474063853738bbdf90d.zip
Fix bug
Diffstat (limited to 'src/server/api/endpoints')
-rw-r--r--src/server/api/endpoints/notes/featured.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts
index 6a76fb8bc6..fa9ae39e3a 100644
--- a/src/server/api/endpoints/notes/featured.ts
+++ b/src/server/api/endpoints/notes/featured.ts
@@ -35,6 +35,7 @@ export default define(meta, async (ps, user) => {
const day = 1000 * 60 * 60 * 24 * 3; // 3日前まで
const query = Notes.createQueryBuilder('note')
+ .addSelect('note.score')
.where('note.userHost IS NULL')
.andWhere(`note.createdAt > :date`, { date: new Date(Date.now() - day) })
.andWhere(`note.visibility = 'public'`)