0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-02 12:28:54 -05:00

Merge pull request #2123 from andrewzhurov/3885-assets-library-not-showing-graphics

🐛 Fix svg upload
This commit is contained in:
Andrey Antukh 2022-08-01 16:42:17 +02:00 committed by GitHub
commit 5336db4456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,7 @@
:bucket "file-media-object"}))))
(create-image [info]
(p/let [data (cond-> (:path info) (= (:mtype info) "image/svg+xml") slurp)
(p/let [data (:path info)
hash (calculate-hash data)
content (-> (sto/content data)
(sto/wrap-with-hash hash))]