mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
Use core uuid fns where possible
No need for medley or personal util fns when core fns are available. Also upgraded nbb-logseq to be 1.11.X cljs compatible - uuid is the same as medley/uuid - random-uuid is the same as medley/random-uuid - uuid-string? and uuid is the same as parse-uuid
This commit is contained in:
committed by
Tienson Qin
parent
fec0b755a8
commit
6f68d985bd
@@ -9,7 +9,6 @@
|
||||
[frontend.state :as state]
|
||||
[logseq.graph-parser.text :as text]
|
||||
[frontend.util :as util]
|
||||
[medley.core :as medley]
|
||||
[reitit.frontend.easy :as rfe]))
|
||||
|
||||
(defn redirect!
|
||||
@@ -80,7 +79,7 @@
|
||||
(let [name (:name path-params)
|
||||
block? (util/uuid-string? name)]
|
||||
(if block?
|
||||
(if-let [block (db/entity [:block/uuid (medley/uuid name)])]
|
||||
(if-let [block (db/entity [:block/uuid (uuid name)])]
|
||||
(let [content (text/remove-level-spaces (:block/content block)
|
||||
(:block/format block) (config/get-block-pattern (:block/format block)))]
|
||||
(if (> (count content) 48)
|
||||
|
||||
Reference in New Issue
Block a user