diff --git a/greataped/app/models/dto/auth.go b/greataped/app/models/dto/auth.go index 37c3bde..dbcabef 100644 --- a/greataped/app/models/dto/auth.go +++ b/greataped/app/models/dto/auth.go @@ -33,17 +33,17 @@ type VerifyResponse struct { type User struct { ID uint `json:"id"` Username string `json:"username"` - DisplayName string `json:"display_name,omitempty"` + DisplayName string `json:"display_name"` Email string `json:"email"` Password string `json:"-"` - Bio string `json:"bio,omitempty"` - Github string `json:"github,omitempty"` - Avatar string `json:"avatar,omitempty"` - Banner string `json:"banner,omitempty"` - ApiKey string `json:"api_key,omitempty"` - PublicKey string `json:"public_key,omitempty"` - Actor string `json:"actor,omitempty"` - Webfinger string `json:"webfinger,omitempty"` + Bio string `json:"bio"` + Github string `json:"github"` + Avatar string `json:"avatar"` + Banner string `json:"banner"` + ApiKey string `json:"api_key"` + PublicKey string `json:"public_key"` + Actor string `json:"actor"` + Webfinger string `json:"webfinger"` PrivateProfile bool `json:"private_profile"` } // @name User diff --git a/greataped/app/routes/profile.go b/greataped/app/routes/profile.go index 67bd0d1..19c42c6 100644 --- a/greataped/app/routes/profile.go +++ b/greataped/app/routes/profile.go @@ -66,7 +66,7 @@ var UpdateProfile = route.New(HttpPost, "/api/v1/profile", func(x IContext) erro } if err := repos.Default.UpdateProfile(user.ID, - Values{ + map[string]interface{}{ "display_name": body.DisplayName, "bio": body.Bio, "github": body.Github, diff --git a/greataped/app/views/index.html b/greataped/app/views/index.html index abff771..cb198f4 100644 --- a/greataped/app/views/index.html +++ b/greataped/app/views/index.html @@ -55,7 +55,12 @@