fix: resizing image breaks validity of :url blocks

db graphs should storing this in properties, not text.
Fixes https://github.com/logseq/db-test/issues/241
This commit is contained in:
Gabriel Horner
2025-04-17 13:43:18 -04:00
parent 1d4c6a100f
commit c56f3312df

View File

@@ -1929,9 +1929,9 @@
(defn resize-image!
[config block-id metadata full_text size]
(let [asset (:asset-block config)]
(if (and asset (config/db-based-graph?))
(if (config/db-based-graph?)
(property-handler/set-block-property! (state/get-current-repo)
(:db/id asset)
(if asset (:db/id asset) block-id)
:logseq.property.asset/resize-metadata
size)
(let [new-meta (merge metadata size)