From b911b45961165d64fba577d4cb87740d89ec6784 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 16 Jul 2019 22:28:36 +0100 Subject: [PATCH] Return absolute URLs for user images --- app/helpers/user_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index c22fef1ea..86990f9fb 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -50,7 +50,7 @@ module UserHelper if user.image_use_gravatar user_gravatar_url(user, options) elsif user.avatar.attached? - url_for(user.avatar.variant(:resize => "100x100>")) + polymorphic_url(user.avatar.variant(:resize => "100x100>")) elsif user.image.file? image_url(user.image.url(:large)) else -- 2.39.5