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:
parent
55723d16fd
commit
41b5da1d8c
4 changed files with 19 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue