Use the configured host name for user image URLs
This commit is contained in:
parent
91a37235ac
commit
40ac2aa528
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue