]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/changesets_controller.rb
Respond with plaintext when user not found in changeset query
[rails.git] / app / controllers / api / changesets_controller.rb
index 84f1ccdb526b41be0d338f533f3c05b6e09f2212..a3dff4f1cd7e4fc935986a009c71e9b31ac7c411 100644 (file)
@@ -307,7 +307,7 @@ module Api
               # user input checking, we don't have any UIDs < 1
               raise OSM::APIBadUserInput, "invalid user ID" if user.to_i < 1
 
-              u = User.find(user.to_i)
+              u = User.find_by(:id => user.to_i)
             else
               u = User.find_by(:display_name => name)
             end