mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-15 08:48:15 +00:00
Fix premailer strategy when using CDN_HOST (#34813)
This commit is contained in:
parent
b7e967817b
commit
955e75e820
|
@ -15,7 +15,9 @@ module PremailerBundledAssetStrategy
|
|||
headers
|
||||
).presence
|
||||
else
|
||||
path = Rails.public_path.join(url.delete_prefix('/'))
|
||||
url = url.delete_prefix(Rails.configuration.action_controller.asset_host) if Rails.configuration.action_controller.asset_host.present?
|
||||
url = url.delete_prefix('/')
|
||||
path = Rails.public_path.join(url)
|
||||
return unless path.exist?
|
||||
|
||||
path.read
|
||||
|
|
Loading…
Reference in New Issue
Block a user