diff options
author | Unknwon <u@gogs.io> | 2016-12-27 22:01:18 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-12-27 22:01:18 +0800 |
commit | 8059175a5c0363519ba28fb8fc5f9d494f6a209d (patch) | |
tree | f21775c9c1abbdad73b1d6d98984f5ac1780cba4 /routers/user/profile.go | |
parent | f8fd084bd2c7c2a4d642daad59dceaf40686269e (diff) |
Fix dashboard issues/pull request counting
Diffstat (limited to 'routers/user/profile.go')
-rw-r--r-- | routers/user/profile.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go index 363705dd..3558e8b0 100644 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -99,7 +99,12 @@ func Profile(ctx *context.Context) { page = 1 } - ctx.Data["Repos"], err = models.GetUserRepositories(ctxUser.ID, ctx.IsSigned && ctx.User.ID == ctxUser.ID, page, setting.UI.User.RepoPagingNum) + ctx.Data["Repos"], err = models.GetUserRepositories(&models.UserRepoOptions{ + UserID: ctxUser.ID, + Private: ctx.IsSigned && ctx.User.ID == ctxUser.ID, + Page: page, + PageSize: setting.UI.User.RepoPagingNum, + }) if err != nil { ctx.Handle(500, "GetRepositories", err) return |