From 479d742e850dcd661e769a90ae5a5843d2fd0f6c Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 10 Apr 2021 23:24:17 +0200 Subject: [PATCH] partly reverted wrong change, #1820 --- src/routes/api/link_map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api/link_map.js b/src/routes/api/link_map.js index c73e7011b..638b25275 100644 --- a/src/routes/api/link_map.js +++ b/src/routes/api/link_map.js @@ -25,7 +25,7 @@ function getRelations(noteIds) { LEFT JOIN branches ON branches.parentNoteId = rel.noteId AND branches.noteId = rel.value AND branches.isDeleted = 0 WHERE (rel.noteId IN (???) OR rel.value IN (???)) AND rel.type = 'relation' - AND rel.name NOT IN ('imageLink', 'relationMapLink', 'template') + AND rel.name = 'imageLink' AND rel.isDeleted = 0 AND rel.noteId != '' AND rel.value != ''