summaryrefslogtreecommitdiff
path: root/app/controllers/explore/projects_controller.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-01-28 03:15:57 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-01-28 03:15:57 +0000
commitc5f4c801a6b40e7ee4b96aba20bbec687ccf0502 (patch)
treead58e3d5ca9b38d0e86a78143f12362bb35ea1be /app/controllers/explore/projects_controller.rb
parent3235221bc498ca3c80eeca505fb32bf9f237778a (diff)
downloadgitlab-ce-c5f4c801a6b40e7ee4b96aba20bbec687ccf0502.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/explore/projects_controller.rb')
-rw-r--r--app/controllers/explore/projects_controller.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/explore/projects_controller.rb b/app/controllers/explore/projects_controller.rb
index 14dd2ae5691..f8a6d9f808e 100644
--- a/app/controllers/explore/projects_controller.rb
+++ b/app/controllers/explore/projects_controller.rb
@@ -92,7 +92,12 @@ class Explore::ProjectsController < Explore::ApplicationController
def load_projects
load_project_counts
- projects = ProjectsFinder.new(current_user: current_user, params: params.merge(minimum_search_length: MIN_SEARCH_LENGTH)).execute
+ finder_params = {
+ minimum_search_length: MIN_SEARCH_LENGTH,
+ not_aimed_for_deletion: true
+ }
+
+ projects = ProjectsFinder.new(current_user: current_user, params: params.merge(finder_params)).execute
projects = preload_associations(projects)
projects = projects.page(params[:page]).without_count