Skip to content

Commit 7619e3a

Browse files
committed
fix: disallowed tags
related to logseq/db-test#572
1 parent a83107f commit 7619e3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deps/outliner/src/logseq/outliner/core.cljs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,10 @@
272272
block (assoc block :block/tags tags')
273273
disallowed-tag? (fn [tag] (inline-tag-disallowed? db tag))
274274
disallowed-tags (filter disallowed-tag? tags')]
275-
(if (seq disallowed-tags)
275+
(if (and (seq disallowed-tags)
276+
(some (fn [tag]
277+
(string/includes? (:block/title block) (str "#" (page-ref/->page-ref (:block/uuid tag)))))
278+
disallowed-tags))
276279
(-> block
277280
(update :block/tags
278281
(fn [tags]

0 commit comments

Comments
 (0)