remove collaborative repositories from search on user profiles (#3996)

* remove collaborative repositories from search on user profiles

* rename 'My Repositories' to 'Repositories'
This commit is contained in:
David Schneiderbauer 2018-05-21 22:07:34 +02:00 committed by Lauris BH
parent 08c9617caa
commit 31067c0a89
2 changed files with 9 additions and 8 deletions

View file

@ -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)