X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15841e8d2ad12c538ef10f0d0782a25d1d7ff156..152e3110403c7ac2568298069123e9015d42d8b3:/app/views/api/users/_user.builder?ds=sidebyside diff --git a/app/views/api/users/_user.builder b/app/views/api/users/_user.builder index 7bf8e18a5..d8c6c1c6e 100644 --- a/app/views/api/users/_user.builder +++ b/app/views/api/users/_user.builder @@ -8,7 +8,7 @@ xml.tag! "user", :id => user.id, else xml.tag! "contributor-terms", :agreed => user.terms_agreed.present? end - xml.tag! "img", :href => user_image_url(user) if user.image.file? || user.image_use_gravatar + xml.tag! "img", :href => user_image_url(user) if user.avatar.attached? || user.image_use_gravatar xml.tag! "roles" do user.roles.each do |role| xml.tag! role.role