link map improvements

This commit is contained in:
zadam
2022-11-07 23:19:38 +01:00
parent b3c87156c2
commit df9f6ce33a
2 changed files with 23 additions and 4 deletions

View File

@@ -94,6 +94,10 @@ function getLinkMap(req) {
.map(note => note.noteId)
);
if (mapRootNote.type === 'search') {
noteIds.delete(mapRootNote.noteId);
}
for (const noteId of getNeighbors(mapRootNote, 3)) {
noteIds.add(noteId);
}