From: Chocobozzz Date: Wed, 4 Jan 2017 20:15:57 +0000 (+0100) Subject: Server: we don't need the video name when removing a remote video X-Git-Tag: v0.0.1-alpha~574^2~14 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=b981a525c37d226b3fa59287a6ce338f54583d0c;p=github%2FChocobozzz%2FPeerTube.git Server: we don't need the video name when removing a remote video --- diff --git a/server/helpers/custom-validators/remote/videos.js b/server/helpers/custom-validators/remote/videos.js index c3ca00e1c..7c27b9dbb 100644 --- a/server/helpers/custom-validators/remote/videos.js +++ b/server/helpers/custom-validators/remote/videos.js @@ -39,7 +39,6 @@ function isEachRemoteRequestVideosValid (requests) { ) || ( isRequestTypeRemoveValid(request.type) && - videosValidators.isVideoNameValid(video.name) && videosValidators.isVideoRemoteIdValid(video.remoteId) ) || ( diff --git a/server/models/video.js b/server/models/video.js index 4c197a835..b3060705d 100644 --- a/server/models/video.js +++ b/server/models/video.js @@ -218,7 +218,6 @@ function afterDestroy (video, options, next) { function (callback) { const params = { - name: video.name, remoteId: video.id }