diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-29 14:34:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-29 14:34:04 +0200 |
commit | 52d9f792b3fee5acce80f948295b59e3ad2073eb (patch) | |
tree | 661f577e9c7196d199b4b49e475ecd2d88e6d7b7 /client/src/app/shared/video | |
parent | 4bbfc6c606c8d3794bae25c64c516120af41f4eb (diff) | |
download | PeerTube-52d9f792b3fee5acce80f948295b59e3ad2073eb.tar.gz PeerTube-52d9f792b3fee5acce80f948295b59e3ad2073eb.tar.zst PeerTube-52d9f792b3fee5acce80f948295b59e3ad2073eb.zip |
Client: Add ability to update video channel avatar
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r-- | client/src/app/shared/video/video.model.ts | 3 |
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 | |||
11 | export class Video implements VideoServerModel { | 11 | export 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) |