X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/82f89681695a2c59fe2b3a42c9acfa92246a2a38..cc8bfc07bbb33debc746f83fdae71f02535592d8:/app/controllers/notes_controller.rb?ds=sidebyside diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 3923cb2d0..f59e9974e 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -279,7 +279,7 @@ class NotesController < ApplicationController @description = t 'note.mine.subheading', :user => render_to_string(:partial => "user", :object => @this_user) @page = (params[:page] || 1).to_i @page_size = 10 - @notes = @this_user.notes.order("updated_at DESC, id").uniq.offset((@page - 1) * @page_size).limit(@page_size).preload(:comments => :author) + @notes = @this_user.notes.order("updated_at DESC, id").uniq.offset((@page - 1) * @page_size).limit(@page_size).preload(:comments => :author).all else @title = t 'user.no_such_user.title' @not_found_user = params[:display_name]