diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-11 15:44:08 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-16 20:29:26 +0100 |
commit | 41b5da1d8cb41f5c49f0e0a01a54106c9a5925dd (patch) | |
tree | 03033e34a2c0c924415e1639ee7d476007699e92 /server/helpers/custom-validators/videos.js | |
parent | 55723d16fd0e323ce7175db8c4806c73d18b895d (diff) | |
download | PeerTube-41b5da1d8cb41f5c49f0e0a01a54106c9a5925dd.tar.gz PeerTube-41b5da1d8cb41f5c49f0e0a01a54106c9a5925dd.tar.zst PeerTube-41b5da1d8cb41f5c49f0e0a01a54106c9a5925dd.zip |
Server: use preview image for opengraph
Diffstat (limited to 'server/helpers/custom-validators/videos.js')
-rw-r--r-- | server/helpers/custom-validators/videos.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/videos.js b/server/helpers/custom-validators/videos.js index 166158ef3..45acb7686 100644 --- a/server/helpers/custom-validators/videos.js +++ b/server/helpers/custom-validators/videos.js | |||
@@ -31,7 +31,7 @@ function isEachRemoteVideosValid (requests) { | |||
31 | isVideoDateValid(video.createdDate) && | 31 | isVideoDateValid(video.createdDate) && |
32 | isVideoDescriptionValid(video.description) && | 32 | isVideoDescriptionValid(video.description) && |
33 | isVideoDurationValid(video.duration) && | 33 | isVideoDurationValid(video.duration) && |
34 | isVideoMagnetValid(video.magnetUri) && | 34 | isVideoMagnetValid(video.magnet) && |
35 | isVideoNameValid(video.name) && | 35 | isVideoNameValid(video.name) && |
36 | isVideoPodUrlValid(video.podUrl) && | 36 | isVideoPodUrlValid(video.podUrl) && |
37 | isVideoTagsValid(video.tags) && | 37 | isVideoTagsValid(video.tags) && |
@@ -63,7 +63,7 @@ function isVideoDurationValid (value) { | |||
63 | } | 63 | } |
64 | 64 | ||
65 | function isVideoMagnetValid (value) { | 65 | function isVideoMagnetValid (value) { |
66 | return validator.isLength(value.infoHash, VIDEOS_CONSTRAINTS_FIELDS.MAGNET.XT) | 66 | return validator.isLength(value.infoHash, VIDEOS_CONSTRAINTS_FIELDS.MAGNET.INFO_HASH) |
67 | } | 67 | } |
68 | 68 | ||
69 | function isVideoNameValid (value) { | 69 | function isVideoNameValid (value) { |