X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2a1689f9621b7ec94e4935ea11fe64a45390ef7d..f5db9cbb207e17fc8a2f15f681819e9e55aa1906:/app/controllers/api/notes_controller.rb diff --git a/app/controllers/api/notes_controller.rb b/app/controllers/api/notes_controller.rb index 83024288d..e6f391ede 100644 --- a/app/controllers/api/notes_controller.rb +++ b/app/controllers/api/notes_controller.rb @@ -251,7 +251,7 @@ module Api end # Find the comments we want to return - @comments = NoteComment.where(:note_id => notes).order("created_at DESC").limit(result_limit).preload(:note) + @comments = NoteComment.where(:note => notes).order("created_at DESC").limit(result_limit).preload(:note) # Render the result respond_to do |format|