From 41b5da1d8cb41f5c49f0e0a01a54106c9a5925dd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 11 Nov 2016 15:44:08 +0100 Subject: Server: use preview image for opengraph --- server/helpers/custom-validators/videos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers/custom-validators/videos.js') 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) { 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) { -- cgit v1.2.3