Merge branch 'master' into enhance/rtc-migrate

This commit is contained in:
Tienson Qin
2025-09-09 17:48:52 +08:00
committed by GitHub
7 changed files with 25 additions and 18 deletions

View File

@@ -146,7 +146,11 @@
(or (some-> (:block/raw-title block-e) (ldb/inline-tag? t))
(ldb/private-tags (:db/ident t))))
(map (fn [tag] (if (number? tag) (db/entity tag) tag)) (:block/tags block)))]
(if (seq tags)
(cond
(ldb/class? block)
(ldb/get-class-title-with-extends block)
(seq tags)
(str (:block/title block)
" "
(string/join
@@ -155,6 +159,7 @@
(when-let [title (:block/title tag)]
(str "#" title)))
tags)))
:else
(:block/title block))))
(defn edit-block!