diff options
author | David Schneiderbauer <daviian@users.noreply.github.com> | 2018-05-21 22:07:34 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-05-21 23:07:34 +0300 |
commit | 31067c0a890cdbf81ea1c696601995f1806ce3a8 (patch) | |
tree | ff4e9633c141334096636142149d97b222aa3833 /routers | |
parent | 08c9617caa0a8afb2d1fad92907fed89fdf4b231 (diff) | |
download | gitea-31067c0a890cdbf81ea1c696601995f1806ce3a8.tar.gz gitea-31067c0a890cdbf81ea1c696601995f1806ce3a8.zip |
remove collaborative repositories from search on user profiles (#3996)
* remove collaborative repositories from search on user profiles
* rename 'My Repositories' to 'Repositories'
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/profile.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go index 4c5cbf5081..6f8b8fe897 100644 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -201,13 +201,14 @@ 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, - IsProfile: true, - PageSize: setting.UI.User.RepoPagingNum, + Keyword: keyword, + OwnerID: ctxUser.ID, + OrderBy: orderBy, + Private: showPrivate, + Page: page, + IsProfile: true, + PageSize: setting.UI.User.RepoPagingNum, + Collaborate: util.OptionalBoolFalse, }) if err != nil { ctx.ServerError("SearchRepositoryByName", err) |