Commit 460eeb13 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Increased count of notes loaded when visit wall page

parent 21c141af
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment