Respond with plaintext when user not found in changeset query
The response used to be of type xml with empty body, which is not valid xml.
This commit is contained in:
parent
406d90c5c8
commit
0bd5838f51
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue