From c9d053f0caa14e6fec4d04c009c79c9a0940c450 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 17 Jun 2021 09:17:35 +0200 Subject: [API] User expose counters (#16167) --- modules/structs/user.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/structs') diff --git a/modules/structs/user.go b/modules/structs/user.go index 2dbc530538..de2e68c2a2 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -43,6 +43,11 @@ type User struct { Website string `json:"website"` // the user's description Description string `json:"description"` + + // user counts + Followers int `json:"followers_count"` + Following int `json:"following_count"` + StarredRepos int `json:"starred_repos_count"` } // MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility -- cgit v1.2.3