X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c105164d7e652dec72a4bff0a47ef96540a6f5ba..9dd82c96dd68071f2ca8bbbb762d2dcd5bc75413:/app/mailers/user_mailer.rb?ds=sidebyside diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 0664b8475..7bbe65ec5 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -194,8 +194,7 @@ class UserMailer < ApplicationMailer avatar = user&.avatar if avatar&.attached? if avatar.variable? - image = avatar.variant(:resize => "50x50>").processed - image.service.download(image.key) + avatar.variant(:resize_to_limit => [50, 50]).download else avatar.blob.download end