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 | |
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')
-rw-r--r-- | shared/models/activitypub/activity.ts | 2 | ||||
-rw-r--r-- | shared/models/actors/actor.model.ts | 4 | ||||
-rw-r--r-- | shared/models/videos/video-update.model.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/video.model.ts | 10 |
4 files changed, 14 insertions, 3 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts index f555f0118..46e883e5f 100644 --- a/shared/models/activitypub/activity.ts +++ b/shared/models/activitypub/activity.ts | |||
@@ -64,7 +64,7 @@ export interface ActivityAnnounce extends BaseActivity { | |||
64 | 64 | ||
65 | export interface ActivityUndo extends BaseActivity { | 65 | export interface ActivityUndo extends BaseActivity { |
66 | type: 'Undo', | 66 | type: 'Undo', |
67 | object: ActivityFollow | ActivityLike | ActivityCreate | 67 | object: ActivityFollow | ActivityLike | ActivityCreate | ActivityAnnounce |
68 | } | 68 | } |
69 | 69 | ||
70 | export interface ActivityLike extends BaseActivity { | 70 | export interface ActivityLike extends BaseActivity { |
diff --git a/shared/models/actors/actor.model.ts b/shared/models/actors/actor.model.ts index f91616519..6b3b1b47c 100644 --- a/shared/models/actors/actor.model.ts +++ b/shared/models/actors/actor.model.ts | |||
@@ -8,7 +8,7 @@ export interface Actor { | |||
8 | host: string | 8 | host: string |
9 | followingCount: number | 9 | followingCount: number |
10 | followersCount: number | 10 | followersCount: number |
11 | createdAt: Date | 11 | createdAt: Date | string |
12 | updatedAt: Date | 12 | updatedAt: Date | string |
13 | avatar: Avatar | 13 | avatar: Avatar |
14 | } | 14 | } |
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 { |