X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8ccd7364cda55f247f2aa8c622466facd3f4fa65..4248e10946c9f60020112c969591b867c6f8fb19:/app/controllers/notes_controller.rb diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 13e930ca5..1de58af90 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -285,7 +285,7 @@ class NotesController < ApplicationController @page_size = 10 @notes = @this_user.notes @notes = @notes.visible unless @user && @user.moderator? - @notes = @notes.order("updated_at DESC, id").uniq.offset((@page - 1) * @page_size).limit(@page_size).preload(:comments => :author).to_a + @notes = @notes.order("updated_at DESC, id").distinct.offset((@page - 1) * @page_size).limit(@page_size).preload(:comments => :author).to_a else @title = t "user.no_such_user.title" @not_found_user = params[:display_name]