diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-28 14:57:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-28 15:06:15 +0200 |
commit | 4fae2b1f300c1f027629569817262f60873a663a (patch) | |
tree | fabffae6d39aa13b19985f8c92730db2a721dceb /server/middlewares | |
parent | 4c8336af67bf4e570e227d5cb1fbcb7a53b3776e (diff) | |
download | PeerTube-4fae2b1f300c1f027629569817262f60873a663a.tar.gz PeerTube-4fae2b1f300c1f027629569817262f60873a663a.tar.zst PeerTube-4fae2b1f300c1f027629569817262f60873a663a.zip |
Rename video full loading
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/shared/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/shared/videos.ts b/server/middlewares/validators/shared/videos.ts index 2c2ae3811..e3a98c58f 100644 --- a/server/middlewares/validators/shared/videos.ts +++ b/server/middlewares/validators/shared/videos.ts | |||
@@ -144,7 +144,7 @@ async function checkCanSeeAuthVideo (req: Request, res: Response, video: MVideoI | |||
144 | 144 | ||
145 | const videoWithRights = (video as MVideoWithRights).VideoChannel?.Account?.userId | 145 | const videoWithRights = (video as MVideoWithRights).VideoChannel?.Account?.userId |
146 | ? video as MVideoWithRights | 146 | ? video as MVideoWithRights |
147 | : await VideoModel.loadAndPopulateAccountAndServerAndTags(video.id) | 147 | : await VideoModel.loadFull(video.id) |
148 | 148 | ||
149 | const privacy = videoWithRights.privacy | 149 | const privacy = videoWithRights.privacy |
150 | 150 | ||