aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/video.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/video/video.model.ts')
-rw-r--r--client/src/app/shared/video/video.model.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts
index 7f421dbbb..5c820a227 100644
--- a/client/src/app/shared/video/video.model.ts
+++ b/client/src/app/shared/video/video.model.ts
@@ -11,6 +11,7 @@ import { VideoScheduleUpdate } from '../../../../../shared/models/videos/video-s
11export class Video implements VideoServerModel { 11export class Video implements VideoServerModel {
12 by: string 12 by: string
13 accountAvatarUrl: string 13 accountAvatarUrl: string
14 videoChannelAvatarUrl: string
14 createdAt: Date 15 createdAt: Date
15 updatedAt: Date 16 updatedAt: Date
16 publishedAt: Date 17 publishedAt: Date
@@ -102,9 +103,11 @@ export class Video implements VideoServerModel {
102 this.dislikes = hash.dislikes 103 this.dislikes = hash.dislikes
103 this.nsfw = hash.nsfw 104 this.nsfw = hash.nsfw
104 this.account = hash.account 105 this.account = hash.account
106 this.channel = hash.channel
105 107
106 this.by = Actor.CREATE_BY_STRING(hash.account.name, hash.account.host) 108 this.by = Actor.CREATE_BY_STRING(hash.account.name, hash.account.host)
107 this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account) 109 this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account)
110 this.videoChannelAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.channel)
108 111
109 this.category.label = peertubeTranslate(this.category.label, translations) 112 this.category.label = peertubeTranslate(this.category.label, translations)
110 this.licence.label = peertubeTranslate(this.licence.label, translations) 113 this.licence.label = peertubeTranslate(this.licence.label, translations)