X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fvideos%2Fvideo-shares.ts;h=20fc962438f591f97c8bb07e62f236b67c6bc44a;hb=453e83ea5d81d203ba34bc43cd5c2c750ba40568;hp=ace62be5cade3a1171e6043cd8cad653c356bd05;hpb=13176a07a95984a53cc59aec5217f2ce9806d1bc;p=oweals%2Fpeertube.git diff --git a/server/middlewares/validators/videos/video-shares.ts b/server/middlewares/validators/videos/video-shares.ts index ace62be5c..20fc96243 100644 --- a/server/middlewares/validators/videos/video-shares.ts +++ b/server/middlewares/validators/videos/video-shares.ts @@ -16,7 +16,7 @@ const videosShareValidator = [ if (areValidationErrors(req, res)) return if (!await doesVideoExist(req.params.id, res)) return - const video = res.locals.video + const video = res.locals.videoAll const share = await VideoShareModel.load(req.params.actorId, video.id) if (!share) {