1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Server: use preview image for opengraph

This commit is contained in:
Chocobozzz 2016-11-11 15:44:08 +01:00
parent 55723d16fd
commit 41b5da1d8c
4 changed files with 19 additions and 8 deletions

View file

@ -31,7 +31,7 @@ function isEachRemoteVideosValid (requests) {
isVideoDateValid(video.createdDate) &&
isVideoDescriptionValid(video.description) &&
isVideoDurationValid(video.duration) &&
isVideoMagnetValid(video.magnetUri) &&
isVideoMagnetValid(video.magnet) &&
isVideoNameValid(video.name) &&
isVideoPodUrlValid(video.podUrl) &&
isVideoTagsValid(video.tags) &&
@ -63,7 +63,7 @@ function isVideoDurationValid (value) {
}
function isVideoMagnetValid (value) {
return validator.isLength(value.infoHash, VIDEOS_CONSTRAINTS_FIELDS.MAGNET.XT)
return validator.isLength(value.infoHash, VIDEOS_CONSTRAINTS_FIELDS.MAGNET.INFO_HASH)
}
function isVideoNameValid (value) {