Add Location, Website and Biography to API (#15675)

This commit is contained in:
KN4CK3R authored and GitHub committed 2021-05-01 10:05:55 +01:00
1 parent 5811e162ae
commit 67e10397af
3 files changed
+31 -7

No files matched your search

+6
View File
@@ -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