aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker.ts2
-rw-r--r--server/initializers/constants.ts10
2 files changed, 9 insertions, 3 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts
index ee02ecf48..b126bf67e 100644
--- a/server/initializers/checker.ts
+++ b/server/initializers/checker.ts
@@ -52,7 +52,7 @@ function checkMissedConfig () {
52 'signup.enabled', 'signup.limit', 'signup.requires_email_verification', 52 'signup.enabled', 'signup.limit', 'signup.requires_email_verification',
53 'signup.filters.cidr.whitelist', 'signup.filters.cidr.blacklist', 53 'signup.filters.cidr.whitelist', 'signup.filters.cidr.blacklist',
54 'transcoding.enabled', 'transcoding.threads', 54 'transcoding.enabled', 'transcoding.threads',
55 'import.videos.http.enabled', 55 'import.videos.http.enabled', 'import.videos.torrent.enabled',
56 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', 56 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route',
57 'instance.default_nsfw_policy', 'instance.robots', 57 'instance.default_nsfw_policy', 'instance.robots',
58 'services.twitter.username', 'services.twitter.whitelisted' 58 'services.twitter.username', 'services.twitter.whitelisted'
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 6d0503f48..efe27a241 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -37,14 +37,15 @@ const SORTABLE_COLUMNS = {
37 JOBS: [ 'createdAt' ], 37 JOBS: [ 'createdAt' ],
38 VIDEO_ABUSES: [ 'id', 'createdAt', 'state' ], 38 VIDEO_ABUSES: [ 'id', 'createdAt', 'state' ],
39 VIDEO_CHANNELS: [ 'id', 'name', 'updatedAt', 'createdAt' ], 39 VIDEO_CHANNELS: [ 'id', 'name', 'updatedAt', 'createdAt' ],
40 VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes' ],
41 VIDEO_IMPORTS: [ 'createdAt' ], 40 VIDEO_IMPORTS: [ 'createdAt' ],
42 VIDEO_COMMENT_THREADS: [ 'createdAt' ], 41 VIDEO_COMMENT_THREADS: [ 'createdAt' ],
43 BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ], 42 BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ],
44 FOLLOWERS: [ 'createdAt' ], 43 FOLLOWERS: [ 'createdAt' ],
45 FOLLOWING: [ 'createdAt' ], 44 FOLLOWING: [ 'createdAt' ],
46 45
47 VIDEOS_SEARCH: [ 'match', 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes' ], 46 VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes', 'trending' ],
47
48 VIDEOS_SEARCH: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes', 'match' ],
48 VIDEO_CHANNELS_SEARCH: [ 'match', 'displayName', 'createdAt' ] 49 VIDEO_CHANNELS_SEARCH: [ 'match', 'displayName', 'createdAt' ]
49} 50}
50 51
@@ -201,6 +202,11 @@ const CONFIG = {
201 ANONYMOUS: config.get<boolean>('search.remote_uri.anonymous') 202 ANONYMOUS: config.get<boolean>('search.remote_uri.anonymous')
202 } 203 }
203 }, 204 },
205 TRENDING: {
206 VIDEOS: {
207 INTERVAL_DAYS: config.get<number>('trending.videos.interval_days')
208 }
209 },
204 ADMIN: { 210 ADMIN: {
205 get EMAIL () { return config.get<string>('admin.email') } 211 get EMAIL () { return config.get<string>('admin.email') }
206 }, 212 },