]> git.openstreetmap.org Git - rails.git/commitdiff
Use the configured host name for user image URLs
authorTom Hughes <tom@compton.nu>
Tue, 16 Jul 2019 21:41:37 +0000 (22:41 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 16 Jul 2019 21:41:37 +0000 (22:41 +0100)
app/helpers/user_helper.rb

index a35da210b1de77d842b2e182d8387ea7128454ad..7914805eafb3d0a846ea71ce511c543ff901798e 100644 (file)
@@ -44,7 +44,7 @@ module UserHelper
     if user.image_use_gravatar
       user_gravatar_url(user, options)
     elsif user.avatar.attached?
-      polymorphic_url(user.avatar.variant(:resize => "100x100>"))
+      polymorphic_url(user.avatar.variant(:resize => "100x100>"), :host => Settings.server_url)
     else
       image_url("avatar_large.png")
     end