diff options
Diffstat (limited to 'routers/home.go')
-rw-r--r-- | routers/home.go | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/routers/home.go b/routers/home.go index d653d1e843..ce4e0be98d 100644 --- a/routers/home.go +++ b/routers/home.go @@ -108,14 +108,13 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) { keyword := strings.Trim(ctx.Query("q"), " ") repos, count, err = models.SearchRepositoryByName(&models.SearchRepoOptions{ - Page: page, - PageSize: opts.PageSize, - OrderBy: orderBy, - Private: opts.Private, - Keyword: keyword, - OwnerID: opts.OwnerID, - Collaborate: true, - AllPublic: true, + Page: page, + PageSize: opts.PageSize, + OrderBy: orderBy, + Private: opts.Private, + Keyword: keyword, + OwnerID: opts.OwnerID, + AllPublic: true, }) if err != nil { ctx.Handle(500, "SearchRepositoryByName", err) |