Commit 460eeb13b7560b40104044973ff933b1a6dbbcaa
1 parent
21c141af
Exists in
master
and in
4 other branches
Increased count of notes loaded when visit wall page
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/notes_controller.rb
| ... | ... | @@ -16,7 +16,7 @@ class NotesController < ApplicationController |
| 16 | 16 | when "snippet" |
| 17 | 17 | then project.snippets.find(params[:target_id]).notes |
| 18 | 18 | when "wall" |
| 19 | - then project.common_notes.order("created_at DESC").fresh.limit(20) | |
| 19 | + then project.common_notes.order("created_at DESC").fresh.limit(60) | |
| 20 | 20 | when "issue" |
| 21 | 21 | then project.issues.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20) |
| 22 | 22 | when "merge_request" | ... | ... |