From 31067c0a890cdbf81ea1c696601995f1806ce3a8 Mon Sep 17 00:00:00 2001
From: David Schneiderbauer <daviian@users.noreply.github.com>
Date: Mon, 21 May 2018 22:07:34 +0200
Subject: [PATCH] remove collaborative repositories from search on user
 profiles (#3996)

* remove collaborative repositories from search on user profiles

* rename 'My Repositories' to 'Repositories'
---
 options/locale/locale_en-US.ini |  2 +-
 routers/user/profile.go         | 15 ++++++++-------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index f63a893017..49c03a9e14 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -168,7 +168,7 @@ no_reply_address_helper = Domain name for users with a hidden email address. For
 uname_holder = Username or Email Address
 password_holder = Password
 switch_dashboard_context = Switch Dashboard Context
-my_repos = My Repositories
+my_repos = Repositories
 show_more_repos = Show more repositories…
 collaborative_repos = Collaborative Repositories
 my_orgs = My Organizations
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)