From 0d0e8dd0904b380b70e19ebcb4763d65601c4632 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Nov 2017 14:34:45 +0100 Subject: Continue activitypub --- server/models/video/video-channel-interface.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/models/video/video-channel-interface.ts') diff --git a/server/models/video/video-channel-interface.ts b/server/models/video/video-channel-interface.ts index 477f97cd4..55e772063 100644 --- a/server/models/video/video-channel-interface.ts +++ b/server/models/video/video-channel-interface.ts @@ -24,6 +24,8 @@ export namespace VideoChannelMethods { export type LoadByUUID = (uuid: string, t?: Sequelize.Transaction) => Promise export type LoadByHostAndUUID = (uuid: string, podHost: string, t?: Sequelize.Transaction) => Promise export type LoadAndPopulateAccountAndVideos = (id: number) => Promise + export type LoadByUrl = (uuid: string, t?: Sequelize.Transaction) => Promise + export type LoadByUUIDOrUrl = (uuid: string, url: string, t?: Sequelize.Transaction) => Promise } export interface VideoChannelClass { @@ -37,6 +39,8 @@ export interface VideoChannelClass { loadAndPopulateAccount: VideoChannelMethods.LoadAndPopulateAccount loadByUUIDAndPopulateAccount: VideoChannelMethods.LoadByUUIDAndPopulateAccount loadAndPopulateAccountAndVideos: VideoChannelMethods.LoadAndPopulateAccountAndVideos + loadByUrl: VideoChannelMethods.LoadByUrl + loadByUUIDOrUrl: VideoChannelMethods.LoadByUUIDOrUrl } export interface VideoChannelAttributes { @@ -45,7 +49,7 @@ export interface VideoChannelAttributes { name: string description: string remote: boolean - url: string + url?: string Account?: AccountInstance Videos?: VideoInstance[] -- cgit v1.2.3