From 923d3d5ad53cd23bf8107e936408e321f6175517 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 28 Jan 2021 14:43:02 +0100 Subject: add test and openapi for hot sort parameter --- server/models/video/video-query-builder.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/models') diff --git a/server/models/video/video-query-builder.ts b/server/models/video/video-query-builder.ts index 3f31ac862..e2145fb9a 100644 --- a/server/models/video/video-query-builder.ts +++ b/server/models/video/video-query-builder.ts @@ -262,7 +262,9 @@ function buildListQuery (model: typeof Model, options: BuildVideosQueryOptions) * justify a better score. However there are multiple ways to achieve that * goal, which is left for later. Yes, this is a TODO :) * - * note: weights and base score are in number of half-days. + * notes: + * - weights and base score are in number of half-days. + * - all comments are counted, regardless of being written by the video author or not * see https://github.com/reddit-archive/reddit/blob/master/r2/r2/lib/db/_sorts.pyx#L47-L58 */ const weights = { -- cgit v1.2.3