X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fvideo-channel.ts;h=8928dda1289a540aa8d332974a9253859defb4e5;hb=38c2fde13e90973731d56b97e92edd89c4c62dbb;hp=41eab456bb7491e560c25297be3d443978516ead;hpb=8d5e65349deebd499c0be10fe02d535a77d58ddb;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/video-channel.ts b/server/lib/video-channel.ts index 41eab456b..8928dda12 100644 --- a/server/lib/video-channel.ts +++ b/server/lib/video-channel.ts @@ -1,13 +1,14 @@ import * as Sequelize from 'sequelize' -import * as uuidv4 from 'uuid/v4' +import { v4 as uuidv4 } from 'uuid' import { VideoChannelCreate } from '../../shared/models' import { VideoChannelModel } from '../models/video/video-channel' -import { buildActorInstance, federateVideoIfNeeded, getVideoChannelActivityPubUrl } from './activitypub' +import { buildActorInstance } from './activitypub/actor' import { VideoModel } from '../models/video/video' -import { MAccountId, MChannelDefault, MChannelId } from '../typings/models' +import { MAccountId, MChannelDefault, MChannelId } from '../types/models' +import { getVideoChannelActivityPubUrl } from './activitypub/url' +import { federateVideoIfNeeded } from './activitypub/videos' -type CustomVideoChannelModelAccount = MChannelDefault & - { Account?: T } +type CustomVideoChannelModelAccount = MChannelDefault & { Account?: T } async function createLocalVideoChannel ( videoChannelInfo: VideoChannelCreate,