X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/09ce3d6abb876b49c8b939903b87a52493ac58c5..97d2c223aa4706054b1219d30c1ea048a2805872:/app/helpers/user_helper.rb diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index c8a80588c..3554980b8 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -73,7 +73,7 @@ module UserHelper if user.avatar.variable? variant = user.avatar.variant(variant_options) # https://stackoverflow.com/questions/61893089/get-metadata-of-active-storage-variant/67228171 - if variant.processed? + if variant.send(:processed?) metadata = variant.processed.send(:record).image.blob.metadata if metadata["width"] options[:width] = metadata["width"]