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:
parent
1f5bf9ef70
commit
e3d156b341
3 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue