diff options
Diffstat (limited to 'shared/core-utils')
-rw-r--r-- | shared/core-utils/videos/index.ts | 1 | ||||
-rw-r--r-- | shared/core-utils/videos/privacy.ts | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/shared/core-utils/videos/index.ts b/shared/core-utils/videos/index.ts index 5a1145f1a..620e3a716 100644 --- a/shared/core-utils/videos/index.ts +++ b/shared/core-utils/videos/index.ts | |||
@@ -1 +1,2 @@ | |||
1 | export * from './bitrate' | 1 | export * from './bitrate' |
2 | export * from './privacy' | ||
diff --git a/shared/core-utils/videos/privacy.ts b/shared/core-utils/videos/privacy.ts new file mode 100644 index 000000000..7d3b67d50 --- /dev/null +++ b/shared/core-utils/videos/privacy.ts | |||
@@ -0,0 +1,9 @@ | |||
1 | import { VideoPrivacy } from '../../models/videos/video-privacy.enum' | ||
2 | |||
3 | function getAllPrivacies () { | ||
4 | return [ VideoPrivacy.PUBLIC, VideoPrivacy.INTERNAL, VideoPrivacy.PRIVATE, VideoPrivacy.UNLISTED ] | ||
5 | } | ||
6 | |||
7 | export { | ||
8 | getAllPrivacies | ||
9 | } | ||