fix: users cant change tags of built-in classes like Tag

Could cause all kinds of bugs. Also moved tags vars to db-class
to have a central ns like we do with properties and l.db.frontend.property
This commit is contained in:
Gabriel Horner
2024-12-12 16:08:52 -05:00
committed by Tienson Qin
parent 953d9e39cf
commit d624d5e7db
10 changed files with 92 additions and 46 deletions

View File

@@ -202,7 +202,7 @@
block)
tags (remove (fn [t]
(or (some-> (:block/raw-title block-e) (ldb/inline-tag? t))
(ldb/type-tags (:db/ident t))))
(ldb/private-tags (:db/ident t))))
(map (fn [tag] (if (number? tag) (db/entity tag) tag)) (:block/tags block)))]
(if (seq tags)
(str (:block/title block)