aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video-query-builder.ts4
1 files changed, 3 insertions, 1 deletions
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)
262 * justify a better score. However there are multiple ways to achieve that 262 * justify a better score. However there are multiple ways to achieve that
263 * goal, which is left for later. Yes, this is a TODO :) 263 * goal, which is left for later. Yes, this is a TODO :)
264 * 264 *
265 * note: weights and base score are in number of half-days. 265 * notes:
266 * - weights and base score are in number of half-days.
267 * - all comments are counted, regardless of being written by the video author or not
266 * see https://github.com/reddit-archive/reddit/blob/master/r2/r2/lib/db/_sorts.pyx#L47-L58 268 * see https://github.com/reddit-archive/reddit/blob/master/r2/r2/lib/db/_sorts.pyx#L47-L58
267 */ 269 */
268 const weights = { 270 const weights = {