X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e72ebb7eacb34e27c0659a267d1eec0fc81f262c..c5152d1860a2c5164355eeeb78f4a092ceb55cc8:/app/views/user/api_details.builder diff --git a/app/views/user/api_details.builder b/app/views/user/api_details.builder index d70c65f04..6e77bfed8 100644 --- a/app/views/user/api_details.builder +++ b/app/views/user/api_details.builder @@ -6,13 +6,16 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do if @user.description xml.tag! "description", @user.description end + xml.tag! "contributor-terms", + :agreed => !!@user.terms_agreed, + :pd => !!@user.consider_pd if @user.home_lat and @user.home_lon xml.tag! "home", :lat => @user.home_lat, :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