Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-09-15 10:49:21 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-09-15 10:49:21 +0400
commit9159be3a50e3bc94f30f85d9640eeac212bf0948 (patch)
treeb032cb8db77add039debf05eb645630ba9f7ee1d /app/contexts
parentcaeb65b1892c8a140d8f72f6aafa3f5fd1d3cbc3 (diff)
Fix MR diff comments. Fix wiki comments loading error
Diffstat (limited to 'app/contexts')
-rw-r--r--app/contexts/notes/load_context.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/contexts/notes/load_context.rb b/app/contexts/notes/load_context.rb
index 6d26e16a56c..f92a780187d 100644
--- a/app/contexts/notes/load_context.rb
+++ b/app/contexts/notes/load_context.rb
@@ -20,7 +20,7 @@ module Notes
# this is the only case, where the order is DESC
project.common_notes.order("created_at DESC, id DESC").limit(50)
when "wiki"
- project.wikis.reverse.map {|w| w.notes.fresh }.flatten[0..20]
+ project.wiki_notes.limit(20)
end
@notes = if after_id