mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Server: implement video views
This commit is contained in:
parent
9e167724f7
commit
e4c87ec269
15 changed files with 612 additions and 48 deletions
|
@ -333,6 +333,9 @@ function getVideo (req, res, next) {
|
|||
// For example, only add a view when a user watch a video during 30s etc
|
||||
friends.quickAndDirtyUpdateVideoToFriends(videoInstance.id, constants.REQUEST_VIDEO_QADU_TYPES.VIEWS)
|
||||
})
|
||||
} else {
|
||||
// Just send the event to our friends
|
||||
friends.addEventToRemoteVideo(videoInstance.id, constants.REQUEST_VIDEO_EVENT_TYPES.VIEWS)
|
||||
}
|
||||
|
||||
// Do not wait the view system
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue