fix: add marker and priority to :block/refs

This commit is contained in:
Tienson Qin
2021-05-12 20:23:39 +08:00
parent b991599244
commit 43f127fbaa
2 changed files with 3 additions and 2 deletions

View File

@@ -268,8 +268,8 @@
(assoc m :block/journal? false)))))
(defn with-page-refs
[{:keys [title body tags refs] :as block} with-id?]
(let [refs (->> (concat tags refs)
[{:keys [title body tags refs marker priority] :as block} with-id?]
(let [refs (->> (concat tags refs [marker priority])
(remove string/blank?)
(distinct))
refs (atom refs)]