]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/api_details.builder
Handle change from @to_user to @this_user for new message action
[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    
-    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