diff options
author | zeripath <art27@cantab.net> | 2021-09-01 06:31:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 01:31:42 -0400 |
commit | 57b0887ab21aaee9a70638df70f6dec0f72098c4 (patch) | |
tree | b2034c61fe70b6ba8da68ff6a0db80bdba3a17cd /routers | |
parent | 83640a595b99c7e19133e649359a6f3d8133ca4c (diff) | |
download | gitea-57b0887ab21aaee9a70638df70f6dec0f72098c4.tar.gz gitea-57b0887ab21aaee9a70638df70f6dec0f72098c4.zip |
Correctly return the number of Repositories for Organizations (#16807)
Calculate and return the number of Repositories on the dashboard
Organization list.
This PR restores some of the logic that was removed in #14032 to
calculate the number of repos on the dashboard orgs list.
Fix #16648
Replaces #16799
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/user/home.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 6565010e0f..bb75558dc8 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -49,7 +49,7 @@ func getDashboardContextUser(ctx *context.Context) *models.User { } ctx.Data["ContextUser"] = ctxUser - orgs, err := models.GetUserOrgsList(ctx.User.ID) + orgs, err := models.GetUserOrgsList(ctx.User) if err != nil { ctx.ServerError("GetUserOrgsList", err) return nil |