external links are also parsed and label is created for them, closes #851

This commit is contained in:
zadam
2020-02-09 10:45:07 +01:00
parent 9eab3026bb
commit 88bd65c679
4 changed files with 43 additions and 7 deletions

View File

@@ -811,8 +811,10 @@ class Note extends Entity {
FROM attributes
WHERE noteId = ? AND
isDeleted = 0 AND
type = 'relation' AND
name IN ('internalLink', 'imageLink', 'relationMapLink', 'includeNoteLink')`, [this.noteId]);
((type = 'relation' AND
name IN ('internalLink', 'imageLink', 'relationMapLink', 'includeNoteLink'))
OR
(type = 'label' AND name = 'externalLink'))`, [this.noteId]);
}
/**