Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Server: we don't need the video name when removing a remote video

Chocobozzzb981a525c37d
diff --git a/server/helpers/custom-validators/remote/videos.js b/server/helpers/custom-validators/remote/videos.js
index c3ca00e1cb..7c27b9dbb9 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 4c197a8350..b3060705d9 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
}