X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bc9f081841d43af4c3e10919a3434e3b541233a9..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|