aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils
diff options
context:
space:
mode:
Diffstat (limited to 'shared/core-utils')
-rw-r--r--shared/core-utils/videos/index.ts1
-rw-r--r--shared/core-utils/videos/privacy.ts9
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 @@
1export * from './bitrate' 1export * from './bitrate'
2export * 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 @@
1import { VideoPrivacy } from '../../models/videos/video-privacy.enum'
2
3function getAllPrivacies () {
4 return [ VideoPrivacy.PUBLIC, VideoPrivacy.INTERNAL, VideoPrivacy.PRIVATE, VideoPrivacy.UNLISTED ]
5}
6
7export {
8 getAllPrivacies
9}