mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 20:32:11 +00:00
Add Location, Website and Biography to API (#15675)
This commit is contained in:
parent
5811e162ae
commit
67e10397af
3 changed files with 31 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue