summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-24 22:48:27 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-24 22:48:27 +0200
commit460eeb13b7560b40104044973ff933b1a6dbbcaa (patch)
treefa09597d13006f39868c69f4150c9227f75b05a2
parent21c141afb1c53a9180a99d2cca29ffa613eb7e3a (diff)
downloadgitlab-ce-460eeb13b7560b40104044973ff933b1a6dbbcaa.tar.gz
Increased count of notes loaded when visit wall page
-rw-r--r--app/controllers/notes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index 9b731a766f0..ed3fd7e82dc 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -16,7 +16,7 @@ class NotesController < ApplicationController
when "snippet"
then project.snippets.find(params[:target_id]).notes
when "wall"
- then project.common_notes.order("created_at DESC").fresh.limit(20)
+ then project.common_notes.order("created_at DESC").fresh.limit(60)
when "issue"
then project.issues.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20)
when "merge_request"