mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Fix optional privacy in upload endpoint
This commit is contained in:
parent
47f6409bb8
commit
2b4dd7e26d
6 changed files with 130 additions and 145 deletions
|
@ -182,7 +182,7 @@ async function addVideo (req: express.Request, res: express.Response) {
|
|||
nsfw: videoInfo.nsfw || false,
|
||||
description: videoInfo.description,
|
||||
support: videoInfo.support,
|
||||
privacy: videoInfo.privacy,
|
||||
privacy: videoInfo.privacy || VideoPrivacy.PRIVATE,
|
||||
duration: videoPhysicalFile['duration'], // duration was added by a previous middleware
|
||||
channelId: res.locals.videoChannel.id,
|
||||
originallyPublishedAt: videoInfo.originallyPublishedAt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue