diff options
author | 6543 <6543@obermui.de> | 2022-05-02 15:35:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 21:35:45 +0800 |
commit | e2a3f3d259d230b7d1f62138e789ccdfd8f43b73 (patch) | |
tree | bfb79a507a767f82f0ecf695eea66c2777d2f09d /cmd/admin.go | |
parent | 509d8112432bd90f070e35e03f4cf78a416914fc (diff) | |
download | gitea-e2a3f3d259d230b7d1f62138e789ccdfd8f43b73.tar.gz gitea-e2a3f3d259d230b7d1f62138e789ccdfd8f43b73.zip |
Federation: return useful statistic information for nodeinfo (#19561)
Add statistic information for total user count, active user count, issue count and comment count for `/nodeinfo`
Diffstat (limited to 'cmd/admin.go')
-rw-r--r-- | cmd/admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/admin.go b/cmd/admin.go index 36cac50a47..fcf331751c 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -556,7 +556,7 @@ func runCreateUser(c *cli.Context) error { // If this is the first user being created. // Take it as the admin and don't force a password update. - if n := user_model.CountUsers(); n == 0 { + if n := user_model.CountUsers(nil); n == 0 { changePassword = false } |