X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ca30b879f6eba3f513bcfa53545dba43d09b2023..9ab8111022ca945fa2cb604e8779954442659046:/app/controllers/notes_controller.rb diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index cab04a0b9..f7344c211 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -30,7 +30,7 @@ class NotesController < ApplicationController end # Get any conditions that need to be applied - notes = closed_condition(Note.scoped) + notes = closed_condition(Note.all) # Check that the boundaries are valid bbox.check_boundaries @@ -176,7 +176,7 @@ class NotesController < ApplicationController # Get a feed of recent notes and comments def feed # Get any conditions that need to be applied - notes = closed_condition(Note.scoped) + notes = closed_condition(Note.all) # Process any bbox if params[:bbox] @@ -254,7 +254,7 @@ class NotesController < ApplicationController raise OSM::APIBadUserInput.new("No query string was given") unless params[:q] # Get any conditions that need to be applied - @notes = closed_condition(Note.scoped) + @notes = closed_condition(Note.all) @notes = @notes.joins(:comments).where("note_comments.body ~ ?", params[:q]) # Find the notes we want to return