공사중: feat: backlinks
All checks were successful
build / build (push) Successful in 46s

This commit is contained in:
2026-03-28 23:34:59 -06:00
parent 9349293684
commit a32e51b755

View File

@@ -132,14 +132,14 @@
(defn backlinks
"Returns a collection of maps {:id …, :title …}."
[node]
(for [{id :nodes/id, title :nodes/title}
(for [{id :nodes/id title :nodes/title}
(sql/execute! (ds) ["select distinct nodes.id, nodes.title from links
inner join nodes
on nodes.id = links.source
where links.dest = ?"
(elisp/print (:id node))])
:let [id (elisp/read-string id)]
:when (graph-visible? (get-node (UUID/fromString id)))]
(elisp/print (str (:id node)))])
:when (-> id elisp/read-string parse-uuid
get-node public?)]
{:id id
:title (elisp/read-string title)}))