X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Flib%2Fvideo-playlist.ts;h=a1af2e1af66116a3d2a5481e53be4e95919c4f9d;hb=e901579b00fbcd8fc0f7b45fd841636329148a34;hp=29b70cfda0b4bd3507769c6012326d7cc0a73d1c;hpb=d5c8932a601c1854db0a2e399ccaf26e17385f1a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/video-playlist.ts b/server/lib/video-playlist.ts index 29b70cfda..a1af2e1af 100644 --- a/server/lib/video-playlist.ts +++ b/server/lib/video-playlist.ts @@ -1,10 +1,10 @@ import * as Sequelize from 'sequelize' -import { VideoPlaylistModel } from '../models/video/video-playlist' import { VideoPlaylistPrivacy } from '../../shared/models/videos/playlist/video-playlist-privacy.model' -import { getVideoPlaylistActivityPubUrl } from './activitypub' import { VideoPlaylistType } from '../../shared/models/videos/playlist/video-playlist-type.model' -import { MAccount } from '../typings/models' -import { MVideoPlaylistOwner } from '../typings/models/video/video-playlist' +import { VideoPlaylistModel } from '../models/video/video-playlist' +import { MAccount } from '../types/models' +import { MVideoPlaylistOwner } from '../types/models/video/video-playlist' +import { getLocalVideoPlaylistActivityPubUrl } from './activitypub/url' async function createWatchLaterPlaylist (account: MAccount, t: Sequelize.Transaction) { const videoPlaylist: MVideoPlaylistOwner = new VideoPlaylistModel({ @@ -14,7 +14,7 @@ async function createWatchLaterPlaylist (account: MAccount, t: Sequelize.Transac ownerAccountId: account.id }) - videoPlaylist.url = getVideoPlaylistActivityPubUrl(videoPlaylist) // We use the UUID, so set the URL after building the object + videoPlaylist.url = getLocalVideoPlaylistActivityPubUrl(videoPlaylist) // We use the UUID, so set the URL after building the object await videoPlaylist.save({ transaction: t })