aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-03-08 21:35:43 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-03-08 21:35:43 +0100
commitd38b82810638b9f664c9016fac2684454c273a77 (patch)
tree9465c367e5033675309efca4d66790c6fdd5230d /server/initializers/constants.js
parent8f9064432122cba0f518a24ac4378357dadec589 (diff)
downloadPeerTube-d38b82810638b9f664c9016fac2684454c273a77.tar.gz
PeerTube-d38b82810638b9f664c9016fac2684454c273a77.tar.zst
PeerTube-d38b82810638b9f664c9016fac2684454c273a77.zip
Add like/dislike system for videos
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index 2d5bb84cc..16a2dd320 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -5,7 +5,7 @@ const path = require('path')
5 5
6// --------------------------------------------------------------------------- 6// ---------------------------------------------------------------------------
7 7
8const LAST_MIGRATION_VERSION = 15 8const LAST_MIGRATION_VERSION = 25
9 9
10// --------------------------------------------------------------------------- 10// ---------------------------------------------------------------------------
11 11
@@ -95,6 +95,11 @@ const CONSTRAINTS_FIELDS = {
95 } 95 }
96} 96}
97 97
98const VIDEO_RATE_TYPES = {
99 LIKE: 'like',
100 DISLIKE: 'dislike'
101}
102
98// --------------------------------------------------------------------------- 103// ---------------------------------------------------------------------------
99 104
100// Score a pod has when we create it as a friend 105// Score a pod has when we create it as a friend
@@ -249,7 +254,8 @@ module.exports = {
249 STATIC_MAX_AGE, 254 STATIC_MAX_AGE,
250 STATIC_PATHS, 255 STATIC_PATHS,
251 THUMBNAILS_SIZE, 256 THUMBNAILS_SIZE,
252 USER_ROLES 257 USER_ROLES,
258 VIDEO_RATE_TYPES
253} 259}
254 260
255// --------------------------------------------------------------------------- 261// ---------------------------------------------------------------------------