From: Anton Khorev Date: Sun, 23 Mar 2025 16:15:06 +0000 (+0300) Subject: Remove unused options argument from user_image_url X-Git-Tag: live~18^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b95140b1bd65fd9e2c66b1fa38b0fe72d15d522a?hp=-c Remove unused options argument from user_image_url --- b95140b1bd65fd9e2c66b1fa38b0fe72d15d522a diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index e00a2253f..490c7983a 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -40,9 +40,9 @@ module UserHelper end end - def user_image_url(user, options = {}) + def user_image_url(user) if user.image_use_gravatar - user_gravatar_url(user, options) + user_gravatar_url(user) elsif user.avatar.attached? polymorphic_url(user_avatar_variant(user, :resize_to_limit => [100, 100]), :host => Settings.server_url) else