From d3e91a5f72ac9c986cdb67d7d6c85bb4819e680c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Apr 2018 15:43:19 +0200 Subject: Add video channel account list --- client/src/app/shared/video/video.model.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/video') diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts index 2e85f40ef..f56eecaeb 100644 --- a/client/src/app/shared/video/video.model.ts +++ b/client/src/app/shared/video/video.model.ts @@ -1,13 +1,14 @@ -import { Account } from '@app/shared/account/account.model' import { User } from '../' import { Video as VideoServerModel, VideoPrivacy } from '../../../../../shared' import { Avatar } from '../../../../../shared/models/avatars/avatar.model' import { VideoConstant } from '../../../../../shared/models/videos/video.model' import { getAbsoluteAPIUrl } from '../misc/utils' import { ServerConfig } from '../../../../../shared/models' +import { Actor } from '@app/shared/actor/actor.model' export class Video implements VideoServerModel { by: string + accountAvatarUrl: string createdAt: Date updatedAt: Date publishedAt: Date @@ -85,7 +86,8 @@ export class Video implements VideoServerModel { this.nsfw = hash.nsfw this.account = hash.account - this.by = Account.CREATE_BY_STRING(hash.account.name, hash.account.host) + this.by = Actor.CREATE_BY_STRING(hash.account.name, hash.account.host) + this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account) } isVideoNSFWForUser (user: User, serverConfig: ServerConfig) { -- cgit v1.2.3