diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-11 15:10:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-11 15:25:51 +0200 |
commit | 0f320037e689b2778959c12ddd4ce790f6e4ae4f (patch) | |
tree | 425acaa4345442388901c833275bb76b42a8a268 /shared/models/videos | |
parent | 9675333decd0b89b73a4fc67b39272f7296bfe3f (diff) | |
download | PeerTube-0f320037e689b2778959c12ddd4ce790f6e4ae4f.tar.gz PeerTube-0f320037e689b2778959c12ddd4ce790f6e4ae4f.tar.zst PeerTube-0f320037e689b2778959c12ddd4ce790f6e4ae4f.zip |
Add ability to update a video channel
Diffstat (limited to 'shared/models/videos')
-rw-r--r-- | shared/models/videos/video-update.model.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/video.model.ts | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/shared/models/videos/video-update.model.ts b/shared/models/videos/video-update.model.ts index 3a205bb83..c368d8464 100644 --- a/shared/models/videos/video-update.model.ts +++ b/shared/models/videos/video-update.model.ts | |||
@@ -11,6 +11,7 @@ export interface VideoUpdate { | |||
11 | tags?: string[] | 11 | tags?: string[] |
12 | commentsEnabled?: boolean | 12 | commentsEnabled?: boolean |
13 | nsfw?: boolean | 13 | nsfw?: boolean |
14 | channelId?: number | ||
14 | thumbnailfile?: Blob | 15 | thumbnailfile?: Blob |
15 | previewfile?: Blob | 16 | previewfile?: Blob |
16 | } | 17 | } |
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index ba1881da3..eb40e82de 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts | |||
@@ -48,6 +48,16 @@ export interface Video { | |||
48 | host: string | 48 | host: string |
49 | avatar: Avatar | 49 | avatar: Avatar |
50 | } | 50 | } |
51 | |||
52 | channel: { | ||
53 | id: number | ||
54 | uuid: string | ||
55 | name: string | ||
56 | displayName: string | ||
57 | url: string | ||
58 | host: string | ||
59 | avatar: Avatar | ||
60 | } | ||
51 | } | 61 | } |
52 | 62 | ||
53 | export interface VideoDetails extends Video { | 63 | export interface VideoDetails extends Video { |