diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-02-15 22:28:11 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-15 22:28:11 +0800 |
commit | a31f64d639f32ee4ef428e76277eb0b0bf5616c4 (patch) | |
tree | 28224755e6d21359b6937300fe807dd2828d71af /routers | |
parent | 9d2b830275bf766b9f5e48e3be4b785dc1b2134a (diff) | |
download | gitea-a31f64d639f32ee4ef428e76277eb0b0bf5616c4.tar.gz gitea-a31f64d639f32ee4ef428e76277eb0b0bf5616c4.zip |
fix: 500 error on /explore/repos page. (#946)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/profile.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go index bb1ab64e02..89585551ad 100644 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -192,12 +192,13 @@ func Profile(ctx *context.Context) { ctx.Data["Total"] = total } else { repos, count, err = models.SearchRepositoryByName(&models.SearchRepoOptions{ - Keyword: keyword, - OwnerID: ctxUser.ID, - OrderBy: orderBy, - Private: showPrivate, - Page: page, - PageSize: setting.UI.User.RepoPagingNum, + Keyword: keyword, + OwnerID: ctxUser.ID, + OrderBy: orderBy, + Private: showPrivate, + Page: page, + IsProfile: true, + PageSize: setting.UI.User.RepoPagingNum, }) if err != nil { ctx.Handle(500, "SearchRepositoryByName", err) |