From e6e63f0679199e0fee84311539b46ad8972f9ed2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Mar 2017 23:39:22 +0900 Subject: [PATCH] [API] Improve trend algorithm --- src/api/endpoints/posts/trend.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/endpoints/posts/trend.ts b/src/api/endpoints/posts/trend.ts index 8a373636ad..3277206d26 100644 --- a/src/api/endpoints/posts/trend.ts +++ b/src/api/endpoints/posts/trend.ts @@ -41,6 +41,9 @@ module.exports = (params, user) => new Promise(async (res, rej) => { const query = { created_at: { $gte: new Date(Date.now() - ms('1days')) + }, + repost_count: { + $gt: 0 } } as any;