]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/shared/videos.ts
Rename video full loading
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / shared / videos.ts
index 2c2ae381127f4294e3b42ef24cd5bff2f6b3d654..e3a98c58f9d85640bfc4b9cb3c500a3e3cde81ee 100644 (file)
@@ -144,7 +144,7 @@ async function checkCanSeeAuthVideo (req: Request, res: Response, video: MVideoI
 
   const videoWithRights = (video as MVideoWithRights).VideoChannel?.Account?.userId
     ? video as MVideoWithRights
-    : await VideoModel.loadAndPopulateAccountAndServerAndTags(video.id)
+    : await VideoModel.loadFull(video.id)
 
   const privacy = videoWithRights.privacy