diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 20:10:02 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 20:10:02 +0200 |
commit | 3fe81fa75eef5320876441539ab89988a04a6c49 (patch) | |
tree | 8b27ba4b0c367a15ec82600098516fc8378432e6 /server/initializers/constants.js | |
parent | fbf1134e3e6b386c9ec5a3946c61f3faf84397fb (diff) | |
download | PeerTube-3fe81fa75eef5320876441539ab89988a04a6c49.tar.gz PeerTube-3fe81fa75eef5320876441539ab89988a04a6c49.tar.zst PeerTube-3fe81fa75eef5320876441539ab89988a04a6c49.zip |
Move the count of results for the pagination in constants module
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r-- | server/initializers/constants.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index bb141456a..48e660fe2 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -9,6 +9,9 @@ let FRIEND_BASE_SCORE = 100 | |||
9 | // Time to wait between requests to the friends | 9 | // Time to wait between requests to the friends |
10 | let INTERVAL = 60000 | 10 | let INTERVAL = 60000 |
11 | 11 | ||
12 | // Number of results by default for the pagination | ||
13 | const PAGINATION_COUNT_DEFAULT = 15 | ||
14 | |||
12 | // Number of points we add/remove from a friend after a successful/bad request | 15 | // Number of points we add/remove from a friend after a successful/bad request |
13 | const PODS_SCORE = { | 16 | const PODS_SCORE = { |
14 | MALUS: -10, | 17 | MALUS: -10, |
@@ -37,6 +40,7 @@ module.exports = { | |||
37 | API_VERSION: API_VERSION, | 40 | API_VERSION: API_VERSION, |
38 | FRIEND_BASE_SCORE: FRIEND_BASE_SCORE, | 41 | FRIEND_BASE_SCORE: FRIEND_BASE_SCORE, |
39 | INTERVAL: INTERVAL, | 42 | INTERVAL: INTERVAL, |
43 | PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, | ||
40 | PODS_SCORE: PODS_SCORE, | 44 | PODS_SCORE: PODS_SCORE, |
41 | REQUEST_RETRIES: REQUEST_RETRIES, | 45 | REQUEST_RETRIES: REQUEST_RETRIES, |
42 | THUMBNAILS_SIZE: THUMBNAILS_SIZE, | 46 | THUMBNAILS_SIZE: THUMBNAILS_SIZE, |