aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-12 11:06:15 +0100
committerChocobozzz <me@florianbigard.com>2018-03-12 11:44:28 +0100
commitb64c950a1cb37da880fc14e8535f438c78b5b7f7 (patch)
tree713bcba3c36e8b13345f0d7134d2e2876265b8e2 /shared
parent416c359cb5967c2b5dff0909ef5558a49d753a1a (diff)
downloadPeerTube-b64c950a1cb37da880fc14e8535f438c78b5b7f7.tar.gz
PeerTube-b64c950a1cb37da880fc14e8535f438c78b5b7f7.tar.zst
PeerTube-b64c950a1cb37da880fc14e8535f438c78b5b7f7.zip
Update videos api list for account
Diffstat (limited to 'shared')
-rw-r--r--shared/models/videos/video.model.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts
index deb81da44..707cd42a7 100644
--- a/shared/models/videos/video.model.ts
+++ b/shared/models/videos/video.model.ts
@@ -1,4 +1,5 @@
1import { Account } from '../actors' 1import { Account } from '../actors'
2import { Avatar } from '../avatars/avatar.model'
2import { VideoChannel } from './video-channel.model' 3import { VideoChannel } from './video-channel.model'
3import { VideoPrivacy } from './video-privacy.enum' 4import { VideoPrivacy } from './video-privacy.enum'
4 5
@@ -14,7 +15,6 @@ export interface VideoFile {
14export interface Video { 15export interface Video {
15 id: number 16 id: number
16 uuid: string 17 uuid: string
17 accountName: string
18 createdAt: Date | string 18 createdAt: Date | string
19 updatedAt: Date | string 19 updatedAt: Date | string
20 categoryLabel: string 20 categoryLabel: string
@@ -27,7 +27,6 @@ export interface Video {
27 duration: number 27 duration: number
28 isLocal: boolean 28 isLocal: boolean
29 name: string 29 name: string
30 serverHost: string
31 thumbnailPath: string 30 thumbnailPath: string
32 previewPath: string 31 previewPath: string
33 embedPath: string 32 embedPath: string
@@ -35,6 +34,14 @@ export interface Video {
35 likes: number 34 likes: number
36 dislikes: number 35 dislikes: number
37 nsfw: boolean 36 nsfw: boolean
37
38 account: {
39 name: string
40 displayName: string
41 url: string
42 host: string
43 avatar: Avatar
44 }
38} 45}
39 46
40export interface VideoDetails extends Video { 47export interface VideoDetails extends Video {