mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
fix: multiple bugs with built-in pages, fixes LOG-3046
- file graph wasn't creating built in pages - 3 places where db graphs were incorrectly using file graph built in page names - file graphs creating default pages with incorrect format
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
(:require [clojure.set :as set]
|
||||
[clojure.string :as string]
|
||||
[frontend.db :as db]
|
||||
[logseq.db.frontend.default :as default-db]
|
||||
[frontend.state :as state]
|
||||
[frontend.util :as util]
|
||||
[frontend.handler.property.util :as pu]
|
||||
[frontend.config :as config]
|
||||
[logseq.graph-parser.db :as gp-db]
|
||||
[logseq.db.sqlite.create-graph :as sqlite-create-graph]
|
||||
[logseq.common.util :as common-util]))
|
||||
|
||||
(defn- build-links
|
||||
@@ -112,7 +113,9 @@
|
||||
(seq tagged-pages)
|
||||
(seq namespaces))
|
||||
linked (set (flatten links))
|
||||
build-in-pages (set (map string/lower-case default-db/built-in-pages-names))
|
||||
build-in-pages (->> (if (config/db-based-graph? repo) sqlite-create-graph/built-in-pages-names gp-db/built-in-pages-names)
|
||||
(map string/lower-case)
|
||||
set)
|
||||
nodes (cond->> (map :block/name full-pages')
|
||||
(not builtin-pages?)
|
||||
(remove (fn [p] (contains? build-in-pages (string/lower-case p))))
|
||||
|
||||
Reference in New Issue
Block a user