mirror of https://github.com/Chocobozzz/PeerTube
Server: we don't need the video name when removing a remote video
parent
55fa55a9be
commit
b981a525c3
|
@ -39,7 +39,6 @@ function isEachRemoteRequestVideosValid (requests) {
|
||||||
) ||
|
) ||
|
||||||
(
|
(
|
||||||
isRequestTypeRemoveValid(request.type) &&
|
isRequestTypeRemoveValid(request.type) &&
|
||||||
videosValidators.isVideoNameValid(video.name) &&
|
|
||||||
videosValidators.isVideoRemoteIdValid(video.remoteId)
|
videosValidators.isVideoRemoteIdValid(video.remoteId)
|
||||||
) ||
|
) ||
|
||||||
(
|
(
|
||||||
|
|
|
@ -218,7 +218,6 @@ function afterDestroy (video, options, next) {
|
||||||
|
|
||||||
function (callback) {
|
function (callback) {
|
||||||
const params = {
|
const params = {
|
||||||
name: video.name,
|
|
||||||
remoteId: video.id
|
remoteId: video.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue