X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/60f2074baca1b36bf02b02be976a2527d60c5fef..1a2bdacf1769d3157b895b662b6e43a2aa59d9e6:/app/views/user/api_read.builder diff --git a/app/views/user/api_read.builder b/app/views/user/api_read.builder index 0e8bfa5ef..fe5af4bcf 100644 --- a/app/views/user/api_read.builder +++ b/app/views/user/api_read.builder @@ -10,9 +10,7 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do else xml.tag! "contributor-terms", :agreed => @this_user.terms_agreed.present? end - if @this_user.image.file? || @this_user.image_use_gravatar - xml.tag! "img", :href => user_image_url(@this_user, :size => 256) - end + xml.tag! "img", :href => user_image_url(@this_user, :size => 256) if @this_user.image.file? || @this_user.image_use_gravatar xml.tag! "roles" do @this_user.roles.each do |role| xml.tag! role.role