Remove paging from all notes except the wall
This commit is contained in:
parent
06ea122840
commit
654f10102e
|
@ -9,11 +9,11 @@ module Notes
|
||||||
|
|
||||||
@notes = case target_type
|
@notes = case target_type
|
||||||
when "commit"
|
when "commit"
|
||||||
project.commit_notes(project.commit(target_id)).fresh.limit(20)
|
project.commit_notes(project.commit(target_id)).fresh
|
||||||
when "issue"
|
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"
|
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"
|
when "snippet"
|
||||||
project.snippets.find(target_id).notes.fresh
|
project.snippets.find(target_id).notes.fresh
|
||||||
when "wall"
|
when "wall"
|
||||||
|
|
Loading…
Reference in a new issue