diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-05-01 11:05:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-01 10:05:55 +0100 |
commit | 67e10397af909a6f6b36000e2e4b5e3a95641832 (patch) | |
tree | 54e3f5d95a6fc9a15947536f538a3a0204caa0d0 /modules/structs | |
parent | 5811e162ae7257ea85a910266dc3cb94a9e6472c (diff) | |
download | gitea-67e10397af909a6f6b36000e2e4b5e3a95641832.tar.gz gitea-67e10397af909a6f6b36000e2e4b5e3a95641832.zip |
Add Location, Website and Biography to API (#15675)
Diffstat (limited to 'modules/structs')
-rw-r--r-- | modules/structs/user.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/structs/user.go b/modules/structs/user.go index 9e021e40fe..efd246e566 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -33,6 +33,12 @@ type User struct { Created time.Time `json:"created,omitempty"` // Is user restricted Restricted bool `json:"restricted"` + // the user's location + Location string `json:"location"` + // the user's website + Website string `json:"website"` + // the user's biography + Description string `json:"bio"` } // MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility |