aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-comment
diff options
context:
space:
mode:
authorkimsible <kimsible@users.noreply.github.com>2020-11-18 19:20:05 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-11-25 11:12:06 +0100
commitc418d483004dfbae9ea38d54aa1577db46d34a8a (patch)
treec4fd4ec790c6e5d6bc44e887090a8286e10fffd2 /client/src/app/shared/shared-video-comment
parent18490b07650d77d7fe376970b749af5a8c672fd6 (diff)
downloadPeerTube-c418d483004dfbae9ea38d54aa1577db46d34a8a.tar.gz
PeerTube-c418d483004dfbae9ea38d54aa1577db46d34a8a.tar.zst
PeerTube-c418d483004dfbae9ea38d54aa1577db46d34a8a.zip
Add new default different avatar for channel and account
Diffstat (limited to 'client/src/app/shared/shared-video-comment')
-rw-r--r--client/src/app/shared/shared-video-comment/video-comment.model.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-video-comment/video-comment.model.ts b/client/src/app/shared/shared-video-comment/video-comment.model.ts
index eeee397af..bf718ae08 100644
--- a/client/src/app/shared/shared-video-comment/video-comment.model.ts
+++ b/client/src/app/shared/shared-video-comment/video-comment.model.ts
@@ -1,5 +1,5 @@
1import { getAbsoluteAPIUrl } from '@app/helpers' 1import { getAbsoluteAPIUrl } from '@app/helpers'
2import { Actor } from '@app/shared/shared-main' 2import { Account, Actor } from '@app/shared/shared-main'
3import { Account as AccountInterface, VideoComment as VideoCommentServerModel, VideoCommentAdmin as VideoCommentAdminServerModel } from '@shared/models' 3import { Account as AccountInterface, VideoComment as VideoCommentServerModel, VideoCommentAdmin as VideoCommentAdminServerModel } from '@shared/models'
4 4
5export class VideoComment implements VideoCommentServerModel { 5export class VideoComment implements VideoCommentServerModel {
@@ -38,7 +38,7 @@ export class VideoComment implements VideoCommentServerModel {
38 38
39 if (this.account) { 39 if (this.account) {
40 this.by = Actor.CREATE_BY_STRING(this.account.name, this.account.host) 40 this.by = Actor.CREATE_BY_STRING(this.account.name, this.account.host)
41 this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account) 41 this.accountAvatarUrl = Account.GET_ACTOR_AVATAR_URL(this.account)
42 42
43 const absoluteAPIUrl = getAbsoluteAPIUrl() 43 const absoluteAPIUrl = getAbsoluteAPIUrl()
44 const thisHost = new URL(absoluteAPIUrl).host 44 const thisHost = new URL(absoluteAPIUrl).host
@@ -97,7 +97,7 @@ export class VideoCommentAdmin implements VideoCommentAdminServerModel {
97 97
98 if (this.account) { 98 if (this.account) {
99 this.by = Actor.CREATE_BY_STRING(this.account.name, this.account.host) 99 this.by = Actor.CREATE_BY_STRING(this.account.name, this.account.host)
100 this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account) 100 this.accountAvatarUrl = Account.GET_ACTOR_AVATAR_URL(this.account)
101 101
102 this.account.localUrl = '/accounts/' + this.by 102 this.account.localUrl = '/accounts/' + this.by
103 } 103 }