aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-12 14:19:56 +0100
committerChocobozzz <me@florianbigard.com>2021-11-12 14:23:22 +0100
commit527a52ac4295a072927ff46761766a8b181a7603 (patch)
tree632f66b1691d8d72f04630671af8bdf1655d6b00 /shared/core-utils/videos
parent8f2608e9a9d54c87ace636f99cdb9d2a7730990f (diff)
downloadPeerTube-527a52ac4295a072927ff46761766a8b181a7603.tar.gz
PeerTube-527a52ac4295a072927ff46761766a8b181a7603.tar.zst
PeerTube-527a52ac4295a072927ff46761766a8b181a7603.zip
Add ability to filter out public videos from admin
Diffstat (limited to 'shared/core-utils/videos')
-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}