return ''
}
- get class () {
+ getClass (type: 'avatar' | 'initial') {
const base = [ 'avatar' ]
if (this.size) base.push(`avatar-${this.size}`)
if (this.account) base.push('account')
else base.push('channel')
- if (this.initial) {
+ if (type === 'initial' && this.initial) {
base.push('initial')
base.push(this.getColorTheme())
}
get avatarUrl () {
if (this.account) return Account.GET_ACTOR_AVATAR_URL(this.account)
- if (this.channel) return VideoChannel.GET_ACTOR_AVATAR_URL(this.account)
+ if (this.channel) return VideoChannel.GET_ACTOR_AVATAR_URL(this.channel)
return ''
}