aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/videos')
-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 {