X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ade96da19f42a1277fde5748c978d2eb984f3536..501adefb3b6d434824fb3f67c47a6cc271e962cf:/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 656218a92..d70c65f04 100644 --- a/app/views/user/api_details.builder +++ b/app/views/user/api_details.builder @@ -12,9 +12,7 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do :zoom => @user.home_zoom end if @user.image - # i'd love to use "url_for_file_column, :absolute=>true", but that doesn't seem - # to work with the file_column plugin version we're using. - xml.tag! "img", :href => ("http://" + SERVER_URL + url_for_file_column(@user, "image")) + xml.tag! "img", :href => (url_for_file_column(@user, "image", :absolute => true)) end if @user.languages xml.tag! "languages" do