aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-05-24 15:56:23 +0200
committerChocobozzz <me@florianbigard.com>2022-05-24 15:56:23 +0200
commitdb9d882c2567fba197754a1f6fd1d75114d33560 (patch)
tree1a3be4f42c543cec2d60117565d1c92e3297c997 /server/initializers
parent87a0cac618c8ed4a09408273d0f5a468530e8062 (diff)
downloadPeerTube-db9d882c2567fba197754a1f6fd1d75114d33560.tar.gz
PeerTube-db9d882c2567fba197754a1f6fd1d75114d33560.tar.zst
PeerTube-db9d882c2567fba197754a1f6fd1d75114d33560.zip
Add ability to set default feed items count
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/config.ts8
-rw-r--r--server/initializers/constants.ts7
2 files changed, 8 insertions, 7 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index 2f59e3e3e..c76a839bc 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -247,6 +247,14 @@ const CONFIG = {
247 } 247 }
248 } 248 }
249 }, 249 },
250 FEEDS: {
251 VIDEOS: {
252 COUNT: config.get<number>('feeds.videos.count')
253 },
254 COMMENTS: {
255 COUNT: config.get<number>('feeds.comments.count')
256 }
257 },
250 ADMIN: { 258 ADMIN: {
251 get EMAIL () { return config.get<string>('admin.email') } 259 get EMAIL () { return config.get<string>('admin.email') }
252 }, 260 },
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 231b86821..824a30bd2 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -766,12 +766,6 @@ const CUSTOM_HTML_TAG_COMMENTS = {
766 SERVER_CONFIG: '<!-- server config -->' 766 SERVER_CONFIG: '<!-- server config -->'
767} 767}
768 768
769// ---------------------------------------------------------------------------
770
771const FEEDS = {
772 COUNT: 20
773}
774
775const MAX_LOGS_OUTPUT_CHARACTERS = 10 * 1000 * 1000 769const MAX_LOGS_OUTPUT_CHARACTERS = 10 * 1000 * 1000
776const LOG_FILENAME = 'peertube.log' 770const LOG_FILENAME = 'peertube.log'
777const AUDIT_LOG_FILENAME = 'peertube-audit.log' 771const AUDIT_LOG_FILENAME = 'peertube-audit.log'
@@ -939,7 +933,6 @@ export {
939 ROUTE_CACHE_LIFETIME, 933 ROUTE_CACHE_LIFETIME,
940 SORTABLE_COLUMNS, 934 SORTABLE_COLUMNS,
941 HLS_STREAMING_PLAYLIST_DIRECTORY, 935 HLS_STREAMING_PLAYLIST_DIRECTORY,
942 FEEDS,
943 JOB_TTL, 936 JOB_TTL,
944 DEFAULT_THEME_NAME, 937 DEFAULT_THEME_NAME,
945 NSFW_POLICY_TYPES, 938 NSFW_POLICY_TYPES,