X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.js;h=48e660fe2667ca4926b05cf473d85fb2a9a68146;hb=3fe81fa75eef5320876441539ab89988a04a6c49;hp=bb141456aba2919d75e11dbd5a0dbdeb2d908833;hpb=fbf1134e3e6b386c9ec5a3946c61f3faf84397fb;p=github%2FChocobozzz%2FPeerTube.git 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 // Time to wait between requests to the friends let INTERVAL = 60000 +// Number of results by default for the pagination +const PAGINATION_COUNT_DEFAULT = 15 + // Number of points we add/remove from a friend after a successful/bad request const PODS_SCORE = { MALUS: -10, @@ -37,6 +40,7 @@ module.exports = { API_VERSION: API_VERSION, FRIEND_BASE_SCORE: FRIEND_BASE_SCORE, INTERVAL: INTERVAL, + PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, PODS_SCORE: PODS_SCORE, REQUEST_RETRIES: REQUEST_RETRIES, THUMBNAILS_SIZE: THUMBNAILS_SIZE,