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,5 +1,5 @@
|
|||
import { Transaction } from 'sequelize/types'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import { buildUUID } from '@server/helpers/uuid'
|
||||
import { UserModel } from '@server/models/user/user'
|
||||
import { MActorDefault } from '@server/types/models/actor'
|
||||
import { ActivityPubActorType } from '../../shared/models/activitypub'
|
||||
|
@ -210,7 +210,7 @@ async function buildChannelAttributes (user: MUser, transaction?: Transaction, c
|
|||
|
||||
// Conflict, generate uuid instead
|
||||
const actor = await ActorModel.loadLocalByName(channelName, transaction)
|
||||
if (actor) channelName = uuidv4()
|
||||
if (actor) channelName = buildUUID()
|
||||
|
||||
const videoChannelDisplayName = `Main ${user.username} channel`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue