summaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorBrian Lester <[email protected]>2021-08-01 20:58:17 -0400
committerBrian Lester <[email protected]>2021-08-01 20:58:17 -0400
commit82c5906d7bebfb65c8906802d939c8198aab87b8 (patch)
tree064f23c943b3b85e5889b3a9859fc881a8181dbb /LICENSE
parent197a3c7060945d422ccb1c3504bfda93791ea380 (diff)
Convert cite links with an associated node into id links
Currently the `org-roam-ui--send-graphdata` function gets all `id` and `cite` links from the database. They are all sent over the websocket, but nothing is done to handle the cite links, they don't appear in the graph. These are not handled because instead of being an (`id` `id` `type`) tuple, they are (`id` `ref` `type`). This change uses a join in the DB to get the `id` of the node that `ref` is associated with. A map function applied to the list of links converts any cite link whose `ref` has an associated node into an (`id` `id` `type`) tuple (changing the `type` from `"cite"` to `"id"`). This new link is correctly handled and appears in the graph.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions