mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Pod URL -> pod host. HTTPS is required to make friends.
Reason: in a network with mix http/https pods, https pods won't be able to play videos from http pod (insecure requests).
This commit is contained in:
parent
41b5da1d8c
commit
49abbbbedc
24 changed files with 167 additions and 195 deletions
|
@ -15,7 +15,7 @@ const videosValidators = {
|
|||
isVideoDurationValid,
|
||||
isVideoMagnetValid,
|
||||
isVideoNameValid,
|
||||
isVideoPodUrlValid,
|
||||
isVideoPodHostValid,
|
||||
isVideoTagsValid,
|
||||
isVideoThumbnailValid,
|
||||
isVideoThumbnail64Valid
|
||||
|
@ -33,7 +33,7 @@ function isEachRemoteVideosValid (requests) {
|
|||
isVideoDurationValid(video.duration) &&
|
||||
isVideoMagnetValid(video.magnet) &&
|
||||
isVideoNameValid(video.name) &&
|
||||
isVideoPodUrlValid(video.podUrl) &&
|
||||
isVideoPodHostValid(video.podHost) &&
|
||||
isVideoTagsValid(video.tags) &&
|
||||
isVideoThumbnail64Valid(video.thumbnailBase64) &&
|
||||
isVideoRemoteIdValid(video.remoteId)
|
||||
|
@ -70,7 +70,7 @@ function isVideoNameValid (value) {
|
|||
return validator.isLength(value, VIDEOS_CONSTRAINTS_FIELDS.NAME)
|
||||
}
|
||||
|
||||
function isVideoPodUrlValid (value) {
|
||||
function isVideoPodHostValid (value) {
|
||||
// TODO: set options (TLD...)
|
||||
return validator.isURL(value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue