mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-12 04:31:11 +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
|
||||
).presence
|
||||
else
|
||||
# Read the file from filesystem
|
||||
vite_path = ViteRuby.instance.manifest.path_for(url)
|
||||
|
||||
return unless vite_path
|
||||
|
||||
path = Rails.public_path.join(vite_path.delete_prefix('/'))
|
||||
path = Rails.public_path.join(url.delete_prefix('/'))
|
||||
return unless path.exist?
|
||||
|
||||
path.read
|
||||
|
|
Loading…
Reference in New Issue
Block a user