1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Server: add views attribute when sending videos to friends

This commit is contained in:
Chocobozzz 2017-03-04 11:00:59 +01:00
parent 1f5bf9ef70
commit e3d156b341
3 changed files with 8 additions and 4 deletions

View file

@ -155,7 +155,8 @@ function addVideo (req, res, videoFile, finalCallback) {
extname: path.extname(videoFile.filename),
description: videoInfos.description,
duration: videoFile.duration,
authorId: author.id
authorId: author.id,
views: videoInfos.views
}
const video = db.Video.build(videoData)