From f5e7b2ce837aa35ff6e1e0fc3b255451c302ec6c Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Mon, 16 Dec 2024 15:11:04 -0500 Subject: [PATCH] fix(regression): skipping validation on journal creation --- src/main/frontend/worker/handler/page/db_based/page.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/worker/handler/page/db_based/page.cljs b/src/main/frontend/worker/handler/page/db_based/page.cljs index f948a8527f..353e0da16c 100644 --- a/src/main/frontend/worker/handler/page/db_based/page.cljs +++ b/src/main/frontend/worker/handler/page/db_based/page.cljs @@ -204,7 +204,8 @@ ;; New page creation must not override built-in entities (not (db-malli-schema/internal-ident? (:db/ident page))))) ;; Don't validate journal names because they can have '/' - (when (not= :logseq.class/Journal type) + (when-not (or (contains? types :logseq.class/Journal) + (contains? (set (:block/tags page)) :logseq.class/Journal)) (outliner-validate/validate-page-title-characters (str (:block/title page)) {:node page}) (doseq [parent parents] (outliner-validate/validate-page-title-characters (str (:block/title parent)) {:node parent})))