WIP of user avatar work

Switching from laptop
This commit is contained in:
Eli Ribble 2026-03-29 17:09:01 -07:00
parent ad90f9c95e
commit 6f9a511874
No known key found for this signature in database
9 changed files with 68 additions and 2 deletions

View file

@ -24,6 +24,7 @@ func (e NoUserError) Error() string { return "That user does not exist" }
type User struct {
Active bool `json:"active"`
Avatar string `json:"avatar"`
DisplayName string `json:"display_name"`
ID int `json:"id"`
Initials string `json:"initials"`
@ -53,6 +54,7 @@ func (u User) HasRoot() bool {
func newUser(ctx context.Context, org Organization, user *models.User) User {
u := User{
Active: true,
Avatar: user.Avatar,
DisplayName: user.DisplayName,
ID: int(user.ID),
Initials: extractInitials(user.DisplayName),