diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-25 13:55:28 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-25 13:55:28 +0200 |
commit | 2b4dd7e26d93c2d9bef4f365cb03c511eff4ca8f (patch) | |
tree | 5fe2982e0db8c1ccb661d5aa9c25b02c12590401 /server/controllers/api/videos | |
parent | 47f6409bb8bc49a50027b9579bb651c0506b6912 (diff) | |
download | PeerTube-2b4dd7e26d93c2d9bef4f365cb03c511eff4ca8f.tar.gz PeerTube-2b4dd7e26d93c2d9bef4f365cb03c511eff4ca8f.tar.zst PeerTube-2b4dd7e26d93c2d9bef4f365cb03c511eff4ca8f.zip |
Fix optional privacy in upload endpoint
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 5bbce11b4..1a18a8ae8 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -182,7 +182,7 @@ async function addVideo (req: express.Request, res: express.Response) { | |||
182 | nsfw: videoInfo.nsfw || false, | 182 | nsfw: videoInfo.nsfw || false, |
183 | description: videoInfo.description, | 183 | description: videoInfo.description, |
184 | support: videoInfo.support, | 184 | support: videoInfo.support, |
185 | privacy: videoInfo.privacy, | 185 | privacy: videoInfo.privacy || VideoPrivacy.PRIVATE, |
186 | duration: videoPhysicalFile['duration'], // duration was added by a previous middleware | 186 | duration: videoPhysicalFile['duration'], // duration was added by a previous middleware |
187 | channelId: res.locals.videoChannel.id, | 187 | channelId: res.locals.videoChannel.id, |
188 | originallyPublishedAt: videoInfo.originallyPublishedAt | 188 | originallyPublishedAt: videoInfo.originallyPublishedAt |