diff options
Diffstat (limited to 'client/src/app/core/users/user.model.ts')
-rw-r--r-- | client/src/app/core/users/user.model.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/client/src/app/core/users/user.model.ts b/client/src/app/core/users/user.model.ts index 15a4f7f82..7d03e1c40 100644 --- a/client/src/app/core/users/user.model.ts +++ b/client/src/app/core/users/user.model.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Account } from '@app/shared/shared-main/account/account.model' | 1 | import { Account } from '@app/shared/shared-main/account/account.model' |
2 | import { hasUserRight } from '@shared/core-utils/users' | 2 | import { hasUserRight } from '@shared/core-utils/users' |
3 | import { | 3 | import { |
4 | Avatar, | 4 | ActorImage, |
5 | NSFWPolicyType, | 5 | NSFWPolicyType, |
6 | User as UserServerModel, | 6 | User as UserServerModel, |
7 | UserAdminFlag, | 7 | UserAdminFlag, |
@@ -111,12 +111,6 @@ export class User implements UserServerModel { | |||
111 | } | 111 | } |
112 | } | 112 | } |
113 | 113 | ||
114 | get accountAvatarUrl () { | ||
115 | if (!this.account) return '' | ||
116 | |||
117 | return this.account.avatarUrl | ||
118 | } | ||
119 | |||
120 | hasRight (right: UserRight) { | 114 | hasRight (right: UserRight) { |
121 | return hasUserRight(this.role, right) | 115 | return hasUserRight(this.role, right) |
122 | } | 116 | } |
@@ -131,7 +125,7 @@ export class User implements UserServerModel { | |||
131 | } | 125 | } |
132 | } | 126 | } |
133 | 127 | ||
134 | updateAccountAvatar (newAccountAvatar?: Avatar) { | 128 | updateAccountAvatar (newAccountAvatar?: ActorImage) { |
135 | if (newAccountAvatar) this.account.updateAvatar(newAccountAvatar) | 129 | if (newAccountAvatar) this.account.updateAvatar(newAccountAvatar) |
136 | else this.account.resetAvatar() | 130 | else this.account.resetAvatar() |
137 | } | 131 | } |