]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Server: we don't need the video name when removing a remote video
authorChocobozzz <florian.bigard@gmail.com>
Wed, 4 Jan 2017 20:15:57 +0000 (21:15 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Wed, 4 Jan 2017 20:15:57 +0000 (21:15 +0100)
server/helpers/custom-validators/remote/videos.js
server/models/video.js

index c3ca00e1cb42dbbe6e6cccf674e1f2bfa449fa6e..7c27b9dbb9d85bb36acd3cce2e5949f40ef08c5e 100644 (file)
@@ -39,7 +39,6 @@ function isEachRemoteRequestVideosValid (requests) {
       ) ||
       (
         isRequestTypeRemoveValid(request.type) &&
-        videosValidators.isVideoNameValid(video.name) &&
         videosValidators.isVideoRemoteIdValid(video.remoteId)
       ) ||
       (
index 4c197a83502d8aad01a2c429c42d81e48929a9aa..b3060705d9cd981dfd6c4ecd4bf74caa77b6516a 100644 (file)
@@ -218,7 +218,6 @@ function afterDestroy (video, options, next) {
 
       function (callback) {
         const params = {
-          name: video.name,
           remoteId: video.id
         }