From b64c950a1cb37da880fc14e8535f438c78b5b7f7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Mar 2018 11:06:15 +0100 Subject: Update videos api list for account --- shared/models/videos/video.model.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'shared') 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 @@ import { Account } from '../actors' +import { Avatar } from '../avatars/avatar.model' import { VideoChannel } from './video-channel.model' import { VideoPrivacy } from './video-privacy.enum' @@ -14,7 +15,6 @@ export interface VideoFile { export interface Video { id: number uuid: string - accountName: string createdAt: Date | string updatedAt: Date | string categoryLabel: string @@ -27,7 +27,6 @@ export interface Video { duration: number isLocal: boolean name: string - serverHost: string thumbnailPath: string previewPath: string embedPath: string @@ -35,6 +34,14 @@ export interface Video { likes: number dislikes: number nsfw: boolean + + account: { + name: string + displayName: string + url: string + host: string + avatar: Avatar + } } export interface VideoDetails extends Video { -- cgit v1.2.3