aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-12-20 09:15:49 +0100
committerChocobozzz <me@florianbigard.com>2022-12-20 09:15:49 +0100
commit868314e8bf6bcc325b0fea35887071ef0614a46d (patch)
tree2f46353e3a44ed6db3068d1d1e4f3b472fdd3869 /server/controllers/api/videos
parent93293ca7887e34fd9b6413fdaeea3d1dddc46ece (diff)
downloadPeerTube-868314e8bf6bcc325b0fea35887071ef0614a46d.tar.gz
PeerTube-868314e8bf6bcc325b0fea35887071ef0614a46d.tar.zst
PeerTube-868314e8bf6bcc325b0fea35887071ef0614a46d.zip
Add ability to get user from file token
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r--server/controllers/api/videos/token.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/token.ts b/server/controllers/api/videos/token.ts
index 009b6dfb6..22387c3e8 100644
--- a/server/controllers/api/videos/token.ts
+++ b/server/controllers/api/videos/token.ts
@@ -22,7 +22,7 @@ export {
22function generateToken (req: express.Request, res: express.Response) { 22function generateToken (req: express.Request, res: express.Response) {
23 const video = res.locals.onlyVideo 23 const video = res.locals.onlyVideo
24 24
25 const { token, expires } = VideoTokensManager.Instance.create(video.uuid) 25 const { token, expires } = VideoTokensManager.Instance.create({ videoUUID: video.uuid, user: res.locals.oauth.token.User })
26 26
27 return res.json({ 27 return res.json({
28 files: { 28 files: {