From fd45e8f43c2638478599ca75632518054461da85 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Oct 2017 11:52:52 +0100 Subject: Add video privacy setting --- server/models/video/video-interface.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/models/video/video-interface.ts') diff --git a/server/models/video/video-interface.ts b/server/models/video/video-interface.ts index 587652f45..cfe65f9aa 100644 --- a/server/models/video/video-interface.ts +++ b/server/models/video/video-interface.ts @@ -49,6 +49,7 @@ export namespace VideoMethods { export type ListOwnedByAuthor = (author: string) => Promise export type ListForApi = (start: number, count: number, sort: string) => Promise< ResultList > + export type ListUserVideosForApi = (userId: number, start: number, count: number, sort: string) => Promise< ResultList > export type SearchAndPopulateAuthorAndPodAndTags = ( value: string, field: string, @@ -75,6 +76,7 @@ export interface VideoClass { generateThumbnailFromData: VideoMethods.GenerateThumbnailFromData list: VideoMethods.List listForApi: VideoMethods.ListForApi + listUserVideosForApi: VideoMethods.ListUserVideosForApi listOwnedAndPopulateAuthorAndTags: VideoMethods.ListOwnedAndPopulateAuthorAndTags listOwnedByAuthor: VideoMethods.ListOwnedByAuthor load: VideoMethods.Load @@ -97,6 +99,7 @@ export interface VideoAttributes { nsfw: boolean description: string duration: number + privacy: number views?: number likes?: number dislikes?: number -- cgit v1.2.3