X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9aaafcb4257af4676e8ea989cc39137bd8970675..24453e72308c681c3d4a5c8b4a743bab4c4bc5ce:/app/views/user/api_details.builder?ds=sidebyside diff --git a/app/views/user/api_details.builder b/app/views/user/api_details.builder index a164c7a56..6e77bfed8 100644 --- a/app/views/user/api_details.builder +++ b/app/views/user/api_details.builder @@ -14,8 +14,8 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do :lon => @user.home_lon, :zoom => @user.home_zoom end - if @user.image - xml.tag! "img", :href => (url_for_file_column(@user, "image", :absolute => true)) + if @user.image.file? + xml.tag! "img", :href => "http://#{SERVER_URL}#{@user.image.url}" end if @user.languages xml.tag! "languages" do