mirror of https://github.com/Chocobozzz/PeerTube
Fix non logged add comment avatar
parent
06ec4bdd15
commit
936441b9ed
|
@ -55,8 +55,8 @@ export class ActorAvatarComponent {
|
||||||
|
|
||||||
if (this.size) base.push(`avatar-${this.size}`)
|
if (this.size) base.push(`avatar-${this.size}`)
|
||||||
|
|
||||||
if (this.account) base.push('account')
|
if (this.channel) base.push('channel')
|
||||||
else base.push('channel')
|
else base.push('account')
|
||||||
|
|
||||||
if (type === 'initial' && this.initial) {
|
if (type === 'initial' && this.initial) {
|
||||||
base.push('initial')
|
base.push('initial')
|
||||||
|
@ -67,10 +67,9 @@ export class ActorAvatarComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
get defaultAvatarUrl () {
|
get defaultAvatarUrl () {
|
||||||
if (this.account) Account.GET_DEFAULT_AVATAR_URL()
|
|
||||||
if (this.channel) return VideoChannel.GET_DEFAULT_AVATAR_URL()
|
if (this.channel) return VideoChannel.GET_DEFAULT_AVATAR_URL()
|
||||||
|
|
||||||
return ''
|
return Account.GET_DEFAULT_AVATAR_URL()
|
||||||
}
|
}
|
||||||
|
|
||||||
get avatarUrl () {
|
get avatarUrl () {
|
||||||
|
|
Loading…
Reference in New Issue