]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/api_details.builder
Issue piwik goal tracking calls correctly
[rails.git] / app / views / user / api_details.builder
index a164c7a56338e85884864abbcf2521f47c225500..6e77bfed827cd2be52f3978ec291dd9b0f271807 100644 (file)
@@ -14,8 +14,8 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do
                        :lon => @user.home_lon,
                        :zoom => @user.home_zoom
     end    
                        :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
     end
     if @user.languages
       xml.tag! "languages" do