diff options
Diffstat (limited to 'client/src/app/shared/shared-main/video-channel/video-channel.model.ts')
-rw-r--r-- | client/src/app/shared/shared-main/video-channel/video-channel.model.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-main/video-channel/video-channel.model.ts b/client/src/app/shared/shared-main/video-channel/video-channel.model.ts index d8be42eef..1ba3fcc0e 100644 --- a/client/src/app/shared/shared-main/video-channel/video-channel.model.ts +++ b/client/src/app/shared/shared-main/video-channel/video-channel.model.ts | |||
@@ -44,7 +44,7 @@ export class VideoChannel extends Actor implements ServerVideoChannel { | |||
44 | return `${window.location.origin}/client/assets/images/default-avatar-videochannel.png` | 44 | return `${window.location.origin}/client/assets/images/default-avatar-videochannel.png` |
45 | } | 45 | } |
46 | 46 | ||
47 | constructor (hash: ServerVideoChannel) { | 47 | constructor (hash: Partial<ServerVideoChannel>) { |
48 | super(hash) | 48 | super(hash) |
49 | 49 | ||
50 | this.displayName = hash.displayName | 50 | this.displayName = hash.displayName |
@@ -93,7 +93,7 @@ export class VideoChannel extends Actor implements ServerVideoChannel { | |||
93 | this.updateBanner(null) | 93 | this.updateBanner(null) |
94 | } | 94 | } |
95 | 95 | ||
96 | private updateComputedAttributes () { | 96 | updateComputedAttributes () { |
97 | this.avatarUrl = VideoChannel.GET_ACTOR_AVATAR_URL(this) | 97 | this.avatarUrl = VideoChannel.GET_ACTOR_AVATAR_URL(this) |
98 | this.bannerUrl = VideoChannel.GET_ACTOR_BANNER_URL(this) | 98 | this.bannerUrl = VideoChannel.GET_ACTOR_BANNER_URL(this) |
99 | } | 99 | } |