From 67e10397af909a6f6b36000e2e4b5e3a95641832 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Sat, 1 May 2021 11:05:55 +0200 Subject: Add Location, Website and Biography to API (#15675) --- modules/structs/user.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/structs') 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 -- cgit v1.2.3