mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Support short uuid for GET video/playlist
This commit is contained in:
parent
62ddc31a9e
commit
d4a8e7a65f
94 changed files with 1029 additions and 673 deletions
|
@ -1,7 +1,7 @@
|
|||
import * as express from 'express'
|
||||
import * as RateLimit from 'express-rate-limit'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import { logger } from '@server/helpers/logger'
|
||||
import { buildUUID } from '@server/helpers/uuid'
|
||||
import { CONFIG } from '@server/initializers/config'
|
||||
import { getAuthNameFromRefreshGrant, getBypassFromExternalAuth, getBypassFromPasswordGrant } from '@server/lib/auth/external-auth'
|
||||
import { handleOAuthToken } from '@server/lib/auth/oauth'
|
||||
|
@ -107,7 +107,7 @@ function getScopedTokens (req: express.Request, res: express.Response) {
|
|||
async function renewScopedTokens (req: express.Request, res: express.Response) {
|
||||
const user = res.locals.oauth.token.user
|
||||
|
||||
user.feedToken = uuidv4()
|
||||
user.feedToken = buildUUID()
|
||||
await user.save()
|
||||
|
||||
return res.json({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue