logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 2ab7dc9a551dee6adc17df57ccb698aa037dd4ec
parent: 2b9bc9c154b790738a839be0ec98e49e82450c60
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date:   Wed,  3 May 2017 18:31:21 +0900

Use URI.join for generate asset URL (#2741)

* Use URI.join for generate asset URL

* to String

Diffstat:

Mapp/helpers/routing_helper.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/helpers/routing_helper.rb b/app/helpers/routing_helper.rb @@ -12,6 +12,6 @@ module RoutingHelper end def full_asset_url(source) - Rails.configuration.x.use_s3 ? source : File.join(root_url, ActionController::Base.helpers.asset_url(source)) + Rails.configuration.x.use_s3 ? source : URI.join(root_url, ActionController::Base.helpers.asset_url(source)).to_s end end