ambrt / joplin-plugin-referencing-notes

42 stars 6 forks source link

Prevent linking to self when constructing backlinks #18

Closed samcan closed 7 months ago

samcan commented 7 months ago

Since Joplin 2.13.4, the search API searches by the note's ID (and so returns the original note) if the text search is unsuccessful. Per https://github.com/laurent22/joplin/issues/9769 this is currently intended behavior. This fixes the plugin to exclude a returned note if it's ID matches the original ID we were searching for.

As part of this, I had to update the plugin's API framework to be able to build. I made this as a separate commit within the pull request so it can be examined separately.

samcan commented 7 months ago

Closing as Joplin has committed a fix (https://github.com/laurent22/joplin/commit/999baf4b3dca1daa85b9928b232ba4392f5a299d) removing the behavior which necessitated this pull request.