import { Account } from '@app/shared/shared-main/account/account.model'
import { hasUserRight } from '@shared/core-utils/users'
import {
- Avatar,
+ ActorImage,
NSFWPolicyType,
User as UserServerModel,
UserAdminFlag,
}
}
- get accountAvatarUrl () {
- if (!this.account) return ''
-
- return this.account.avatarUrl
- }
-
hasRight (right: UserRight) {
return hasUserRight(this.role, right)
}
}
}
- updateAccountAvatar (newAccountAvatar?: Avatar) {
+ updateAccountAvatar (newAccountAvatar?: ActorImage) {
if (newAccountAvatar) this.account.updateAvatar(newAccountAvatar)
else this.account.resetAvatar()
}