X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8cef62cd2cec4a297e46b4f2a86c9afeadb3b283..3422bb541db16f6b6e7374689e82e982bd78664b:/app/controllers/api/users_controller.rb diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index 9da9d3226..ab48a5189 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -19,7 +19,7 @@ module Api raise OSM::APIBadUserInput, "No users were given to search for" if ids.empty? - @users = User.visible.find(ids) + @users = User.visible.where(:id => ids).in_order_of(:id, ids) # Render the result respond_to do |format|