summaryrefslogtreecommitdiff
path: root/lib/gitlab/project_search_results.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-23 16:43:08 +0100
committerDouwe Maan <douwe@gitlab.com>2015-03-23 16:43:08 +0100
commit6b92236eeb74fa9854165c498a80f52e25e60e18 (patch)
treed29e3f2803fa785bd3f9db287bb69152c7f49231 /lib/gitlab/project_search_results.rb
parentbc4e25189805879490555ef2782193470f4fe295 (diff)
downloadgitlab-ce-6b92236eeb74fa9854165c498a80f52e25e60e18.tar.gz
Don't include system notes in issue/MR comment count.notes-count-without-system
Diffstat (limited to 'lib/gitlab/project_search_results.rb')
-rw-r--r--lib/gitlab/project_search_results.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/project_search_results.rb b/lib/gitlab/project_search_results.rb
index 8b85f3da83f..0dab7bcfa4d 100644
--- a/lib/gitlab/project_search_results.rb
+++ b/lib/gitlab/project_search_results.rb
@@ -67,7 +67,7 @@ module Gitlab
end
def notes
- Note.where(project_id: limit_project_ids).search(query).order('updated_at DESC')
+ Note.where(project_id: limit_project_ids).user.search(query).order('updated_at DESC')
end
def limit_project_ids