mirror of
1
Fork 0

Add Pronouns to the User and UserSettings api structs

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2024-02-29 11:10:18 +01:00 committed by hazycora
parent 1c551f923b
commit 66ac657159
No known key found for this signature in database
GPG Key ID: 215AF1F81F86940E
2 changed files with 12 additions and 0 deletions

View File

@ -41,6 +41,8 @@ type User struct {
ProhibitLogin bool `json:"prohibit_login"` ProhibitLogin bool `json:"prohibit_login"`
// the user's location // the user's location
Location string `json:"location"` Location string `json:"location"`
// the user's pronouns
Pronouns string `json:"pronouns"`
// the user's website // the user's website
Website string `json:"website"` Website string `json:"website"`
// the user's description // the user's description
@ -71,6 +73,7 @@ type UserSettings struct {
Website string `json:"website"` Website string `json:"website"`
Description string `json:"description"` Description string `json:"description"`
Location string `json:"location"` Location string `json:"location"`
Pronouns string `json:"pronouns"`
Language string `json:"language"` Language string `json:"language"`
Theme string `json:"theme"` Theme string `json:"theme"`
DiffViewStyle string `json:"diff_view_style"` DiffViewStyle string `json:"diff_view_style"`

View File

@ -23834,6 +23834,11 @@
"type": "boolean", "type": "boolean",
"x-go-name": "ProhibitLogin" "x-go-name": "ProhibitLogin"
}, },
"pronouns": {
"description": "the user's pronouns",
"type": "string",
"x-go-name": "Pronouns"
},
"restricted": { "restricted": {
"description": "Is user restricted", "description": "Is user restricted",
"type": "boolean", "type": "boolean",
@ -23909,6 +23914,10 @@
"type": "string", "type": "string",
"x-go-name": "Location" "x-go-name": "Location"
}, },
"pronouns": {
"type": "string",
"x-go-name": "Pronouns"
},
"theme": { "theme": {
"type": "string", "type": "string",
"x-go-name": "Theme" "x-go-name": "Theme"