-
- const absoluteAPIUrl = getAbsoluteAPIUrl()
- const thisHost = new URL(absoluteAPIUrl).host
- this.isLocal = this.host.trim() === thisHost
-
- this.updateComputedAttributes()
- }
-
- updateAvatar (newAvatar: Avatar) {
- this.avatar = newAvatar
-
- this.updateComputedAttributes()
- }
-
- private updateComputedAttributes () {
- this.avatarUrl = Actor.GET_ACTOR_AVATAR_URL(this)