ActivityPub-federated video streaming platform using P2P directly in your web browser
Stop requests on 404
Chocobozzzc76702443450
diff --git a/server/core/middlewares/validators/videos/video-shares.ts b/server/core/middlewares/validators/videos/video-shares.tsindex 8a0874ecc1..f96e534cb9 100644--- a/server/core/middlewares/validators/videos/video-shares.ts+++ b/server/core/middlewares/validators/videos/video-shares.ts@@ -17,7 +17,7 @@ export const videosShareValidator = [if (!await doesVideoExist(req.params.id, res, 'with-blacklist')) returnconst video = res.locals.videoWithBlacklist- if (!canVideoBeFederated(video)) res.sendStatus(HttpStatusCode.NOT_FOUND_404)+ if (!canVideoBeFederated(video)) return res.sendStatus(HttpStatusCode.NOT_FOUND_404)const share = await VideoShareModel.load(req.params.actorId, video.id)if (!share) return res.sendStatus(HttpStatusCode.NOT_FOUND_404)