Skip to content
Snippets Groups Projects
Commit 654f1010 authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Remove paging from all notes except the wall

parent 06ea1228
No related branches found
No related tags found
1 merge request!1878Discussions (a.k.a. Grouped Comments)
Loading
Loading
@@ -9,11 +9,11 @@ module Notes
 
@notes = case target_type
when "commit"
project.commit_notes(project.commit(target_id)).fresh.limit(20)
project.commit_notes(project.commit(target_id)).fresh
when "issue"
project.issues.find(target_id).notes.inc_author.fresh.limit(20)
project.issues.find(target_id).notes.inc_author.fresh
when "merge_request"
project.merge_requests.find(target_id).mr_and_commit_notes.inc_author.fresh.limit(20)
project.merge_requests.find(target_id).mr_and_commit_notes.inc_author.fresh
when "snippet"
project.snippets.find(target_id).notes.fresh
when "wall"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment