mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 14:06:37 +02:00
🐛 Fix thumbnails in viewer thumbnails
This commit is contained in:
parent
0654741e28
commit
529fb350fa
4 changed files with 25 additions and 13 deletions
|
@ -53,8 +53,10 @@
|
|||
[{:keys [pool] :as cfg} {:keys [profile-id file-id share-id] :as params}]
|
||||
(p/let [slink (slnk/retrieve-share-link pool file-id share-id)
|
||||
perms (files/get-permissions pool profile-id file-id share-id)
|
||||
thumbs (files/retrieve-object-thumbnails cfg file-id)
|
||||
bundle (p/-> (retrieve-bundle cfg file-id)
|
||||
(assoc :permissions perms))]
|
||||
(assoc :permissions perms)
|
||||
(assoc-in [:file :thumbnails] thumbs))]
|
||||
|
||||
;; When we have neither profile nor share, we just return a not
|
||||
;; found response to the user.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue