diff options
Diffstat (limited to 'server/middlewares/validators/videos.ts')
-rw-r--r-- | server/middlewares/validators/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts index 52b4475ce..f21680aa0 100644 --- a/server/middlewares/validators/videos.ts +++ b/server/middlewares/validators/videos.ts | |||
@@ -222,7 +222,7 @@ const videosShareValidator = [ | |||
222 | if (areValidationErrors(req, res)) return | 222 | if (areValidationErrors(req, res)) return |
223 | if (!await isVideoExist(req.params.id, res)) return | 223 | if (!await isVideoExist(req.params.id, res)) return |
224 | 224 | ||
225 | const share = await db.VideoShare.load(req.params.accountId, res.locals.video.id) | 225 | const share = await db.VideoShare.load(req.params.accountId, res.locals.video.id, undefined) |
226 | if (!share) { | 226 | if (!share) { |
227 | return res.status(404) | 227 | return res.status(404) |
228 | .end() | 228 | .end() |