mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 14:39:48 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user