mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-19 16:11:13 +00:00
Premailer no longer needs to do a lookup, we can directly load the file
This commit is contained in:
parent
383f6b7a4e
commit
f1aa3970d3
|
@ -15,12 +15,7 @@ module PremailerBundledAssetStrategy
|
||||||
headers
|
headers
|
||||||
).presence
|
).presence
|
||||||
else
|
else
|
||||||
# Read the file from filesystem
|
path = Rails.public_path.join(url.delete_prefix('/'))
|
||||||
vite_path = ViteRuby.instance.manifest.path_for(url)
|
|
||||||
|
|
||||||
return unless vite_path
|
|
||||||
|
|
||||||
path = Rails.public_path.join(vite_path.delete_prefix('/'))
|
|
||||||
return unless path.exist?
|
return unless path.exist?
|
||||||
|
|
||||||
path.read
|
path.read
|
||||||
|
|
Loading…
Reference in New Issue
Block a user