diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-23 16:43:08 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-23 16:43:08 +0100 |
commit | 6b92236eeb74fa9854165c498a80f52e25e60e18 (patch) | |
tree | d29e3f2803fa785bd3f9db287bb69152c7f49231 /lib | |
parent | bc4e25189805879490555ef2782193470f4fe295 (diff) | |
download | gitlab-ce-6b92236eeb74fa9854165c498a80f52e25e60e18.tar.gz |
Don't include system notes in issue/MR comment count.notes-count-without-system
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/project_search_results.rb | 2 |
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 |