diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-05-02 21:03:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-02 21:03:15 +0200 |
commit | 8c8471e75464fa6253a44cdbb8f6ad233aae9067 (patch) | |
tree | f8fd7e87b26f2b735208cb95de147c2ef93d814e /modules/structs/user.go | |
parent | 0590176a23c056b274bd30ff7cec8f8a203f0665 (diff) | |
download | gitea-8c8471e75464fa6253a44cdbb8f6ad233aae9067.tar.gz gitea-8c8471e75464fa6253a44cdbb8f6ad233aae9067.zip |
Addition to (Add Location, Website and Description to API #15675) (#15690)
* Use same name as other structs.
* Sync with normal forms.
* Edit description with API.
* Workaround for nil value.
Diffstat (limited to 'modules/structs/user.go')
-rw-r--r-- | modules/structs/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/structs/user.go b/modules/structs/user.go index efd246e566..b5d5b9298e 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -37,8 +37,8 @@ type User struct { Location string `json:"location"` // the user's website Website string `json:"website"` - // the user's biography - Description string `json:"bio"` + // the user's description + Description string `json:"description"` } // MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility |