diff options
Diffstat (limited to 'server/controllers/api/videos.js')
-rw-r--r-- | server/controllers/api/videos.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/api/videos.js b/server/controllers/api/videos.js index 375e89387..3d616e33d 100644 --- a/server/controllers/api/videos.js +++ b/server/controllers/api/videos.js | |||
@@ -313,6 +313,7 @@ function addVideo (req, res, videoFile, finalCallback) { | |||
313 | extname: path.extname(videoFile.filename), | 313 | extname: path.extname(videoFile.filename), |
314 | category: videoInfos.category, | 314 | category: videoInfos.category, |
315 | licence: videoInfos.licence, | 315 | licence: videoInfos.licence, |
316 | nsfw: videoInfos.nsfw, | ||
316 | description: videoInfos.description, | 317 | description: videoInfos.description, |
317 | duration: videoFile.duration, | 318 | duration: videoFile.duration, |
318 | authorId: author.id | 319 | authorId: author.id |
@@ -428,6 +429,7 @@ function updateVideo (req, res, finalCallback) { | |||
428 | if (videoInfosToUpdate.name) videoInstance.set('name', videoInfosToUpdate.name) | 429 | if (videoInfosToUpdate.name) videoInstance.set('name', videoInfosToUpdate.name) |
429 | if (videoInfosToUpdate.category) videoInstance.set('category', videoInfosToUpdate.category) | 430 | if (videoInfosToUpdate.category) videoInstance.set('category', videoInfosToUpdate.category) |
430 | if (videoInfosToUpdate.licence) videoInstance.set('licence', videoInfosToUpdate.licence) | 431 | if (videoInfosToUpdate.licence) videoInstance.set('licence', videoInfosToUpdate.licence) |
432 | if (videoInfosToUpdate.nsfw) videoInstance.set('nsfw', videoInfosToUpdate.nsfw) | ||
431 | if (videoInfosToUpdate.description) videoInstance.set('description', videoInfosToUpdate.description) | 433 | if (videoInfosToUpdate.description) videoInstance.set('description', videoInfosToUpdate.description) |
432 | 434 | ||
433 | videoInstance.save(options).asCallback(function (err) { | 435 | videoInstance.save(options).asCallback(function (err) { |