aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 9b0aa809e..c56fbfbf2 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1090,6 +1090,7 @@ export class VideoModel extends Model {
1090 const trendingDays = options.sort.endsWith('trending') 1090 const trendingDays = options.sort.endsWith('trending')
1091 ? CONFIG.TRENDING.VIDEOS.INTERVAL_DAYS 1091 ? CONFIG.TRENDING.VIDEOS.INTERVAL_DAYS
1092 : undefined 1092 : undefined
1093 const hot = options.sort.endsWith('hot')
1093 1094
1094 const serverActor = await getServerActor() 1095 const serverActor = await getServerActor()
1095 1096
@@ -1119,6 +1120,7 @@ export class VideoModel extends Model {
1119 user: options.user, 1120 user: options.user,
1120 historyOfUser: options.historyOfUser, 1121 historyOfUser: options.historyOfUser,
1121 trendingDays, 1122 trendingDays,
1123 hot,
1122 search: options.search 1124 search: options.search
1123 } 1125 }
1124 1126