Commit cd5c4bac5042c5469dcdf7e7b2f768d3c6fd7088

Authored by Dmitriy Zaporozhets
1 parent 8470d70d

notes count for wall

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/notes_controller.rb
@@ -46,7 +46,7 @@ class NotesController < ApplicationController @@ -46,7 +46,7 @@ class NotesController < ApplicationController
46 when "snippet" 46 when "snippet"
47 then project.snippets.find(params[:target_id]).notes 47 then project.snippets.find(params[:target_id]).notes
48 when "wall" 48 when "wall"
49 - then project.common_notes.order("created_at DESC").fresh.limit(10) 49 + then project.common_notes.order("created_at DESC").fresh.limit(50)
50 when "issue" 50 when "issue"
51 then project.issues.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20) 51 then project.issues.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20)
52 when "merge_request" 52 when "merge_request"