diff options
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index adccb9f41..d349abaf0 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -12,10 +12,11 @@ import { | |||
12 | RemoteVideoRequestType, | 12 | RemoteVideoRequestType, |
13 | JobState | 13 | JobState |
14 | } from '../../shared/models' | 14 | } from '../../shared/models' |
15 | import { VideoPrivacy } from '../../shared/models/videos/video-privacy.enum' | ||
15 | 16 | ||
16 | // --------------------------------------------------------------------------- | 17 | // --------------------------------------------------------------------------- |
17 | 18 | ||
18 | const LAST_MIGRATION_VERSION = 90 | 19 | const LAST_MIGRATION_VERSION = 95 |
19 | 20 | ||
20 | // --------------------------------------------------------------------------- | 21 | // --------------------------------------------------------------------------- |
21 | 22 | ||
@@ -196,6 +197,12 @@ const VIDEO_LANGUAGES = { | |||
196 | 14: 'Italian' | 197 | 14: 'Italian' |
197 | } | 198 | } |
198 | 199 | ||
200 | const VIDEO_PRIVACIES = { | ||
201 | [VideoPrivacy.PUBLIC]: 'Public', | ||
202 | [VideoPrivacy.UNLISTED]: 'Unlisted', | ||
203 | [VideoPrivacy.PRIVATE]: 'Private' | ||
204 | } | ||
205 | |||
199 | // --------------------------------------------------------------------------- | 206 | // --------------------------------------------------------------------------- |
200 | 207 | ||
201 | // Score a pod has when we create it as a friend | 208 | // Score a pod has when we create it as a friend |
@@ -394,6 +401,7 @@ export { | |||
394 | THUMBNAILS_SIZE, | 401 | THUMBNAILS_SIZE, |
395 | VIDEO_CATEGORIES, | 402 | VIDEO_CATEGORIES, |
396 | VIDEO_LANGUAGES, | 403 | VIDEO_LANGUAGES, |
404 | VIDEO_PRIVACIES, | ||
397 | VIDEO_LICENCES, | 405 | VIDEO_LICENCES, |
398 | VIDEO_RATE_TYPES | 406 | VIDEO_RATE_TYPES |
399 | } | 407 | } |