X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/60f2074baca1b36bf02b02be976a2527d60c5fef..673b58f96f3acfd0281c62a2a7f080825b6fb28b:/app/views/user/api_read.builder?ds=sidebyside 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