mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
fix: tags in page graph
also add fixmes
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
[logseq.db.default :as default-db]
|
||||
[frontend.state :as state]
|
||||
[frontend.util :as util]
|
||||
[frontend.handler.property.util :as pu]))
|
||||
[frontend.handler.property.util :as pu]
|
||||
[frontend.config :as config]))
|
||||
|
||||
(defn- build-links
|
||||
[links]
|
||||
@@ -127,7 +128,10 @@
|
||||
(when-let [repo (state/get-current-repo)]
|
||||
(let [page (util/page-name-sanity-lc page)
|
||||
page-entity (db/entity [:block/name page])
|
||||
tags (:tags (:block/properties page-entity))
|
||||
tags (if (config/db-based-graph? repo)
|
||||
(set (map #(:block/name (db/entity repo (:db/id %)))
|
||||
(:block/tags page-entity)))
|
||||
(:tags (:block/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 show-journal)
|
||||
|
||||
Reference in New Issue
Block a user