mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 15:06:18 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
ee1b9e861e
3 changed files with 42 additions and 11 deletions
|
@ -14,6 +14,7 @@
|
|||
[app.config :as cf]
|
||||
[app.db :as db]
|
||||
[app.http.client :as http]
|
||||
[app.loggers.audit :as-alias audit]
|
||||
[app.media :as media]
|
||||
[app.rpc :as-alias rpc]
|
||||
[app.rpc.climit :as climit]
|
||||
|
@ -68,8 +69,15 @@
|
|||
(files/check-edition-permissions! pool profile-id file-id)
|
||||
(media/validate-media-type! content)
|
||||
(validate-content-size! content)
|
||||
|
||||
(create-file-media-object cfg params)))
|
||||
(->> (create-file-media-object cfg params)
|
||||
(p/fmap (fn [object]
|
||||
(with-meta object
|
||||
{::audit/replace-props
|
||||
{:name (:name params)
|
||||
:file-id file-id
|
||||
:is-local (:is-local params)
|
||||
:size (:size content)
|
||||
:mtype (:mtype content)}}))))))
|
||||
|
||||
(defn- big-enough-for-thumbnail?
|
||||
"Checks if the provided image info is big enough for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue