mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 16:15:21 +00:00
DB refactor and fix issues related to tags and aliases
1. add a `page` filter. 2. keep word case for both page and block's properties 3. remove `:tag/name` from the db schema Fixed #1031
This commit is contained in:
@@ -104,8 +104,7 @@
|
||||
(let [page (string/lower-case page)
|
||||
page-entity (db/entity [:page/name page])
|
||||
original-page-name (:page/original-name page-entity)
|
||||
tags (->> (:page/tags page-entity)
|
||||
(map :tag/name))
|
||||
tags (:tags (:page/properties page-entity))
|
||||
tags (remove #(= page %) tags)
|
||||
ref-pages (db/get-page-referenced-pages repo page)
|
||||
mentioned-pages (db/get-pages-that-mentioned-page repo page)
|
||||
|
||||
Reference in New Issue
Block a user