return absoluteAPIUrl + actor.avatar.path
}
-
- return this.GET_DEFAULT_AVATAR_URL()
- }
-
- static GET_DEFAULT_AVATAR_URL () {
- return window.location.origin + '/client/assets/images/default-avatar.png'
}
static CREATE_BY_STRING (accountName: string, host: string, forceHostname = false) {
this.avatar = hash.avatar
this.isLocal = Actor.IS_LOCAL(this.host)
-
- this.updateComputedAttributes()
- }
-
- updateAvatar (newAvatar: Avatar) {
- this.avatar = newAvatar
-
- this.updateComputedAttributes()
- }
-
- private updateComputedAttributes () {
- this.avatarUrl = Actor.GET_ACTOR_AVATAR_URL(this)
}
}