mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
sync fixes
This commit is contained in:
@@ -333,14 +333,18 @@ async function findSimilarNotes(noteId) {
|
||||
let value = attr.value;
|
||||
let factor = 1;
|
||||
|
||||
if (value.startsWith('http')) {
|
||||
if (!value) {
|
||||
log.info(`Unexpected falsy value for attribute ${JSON.stringify(attr.pojo)}`);
|
||||
continue;
|
||||
}
|
||||
else if (value.startsWith('http')) {
|
||||
value = filterUrlValue(value);
|
||||
|
||||
// words in URLs are not that valuable
|
||||
factor = 0.5;
|
||||
}
|
||||
|
||||
score += gatherRewards(attr.value, factor);
|
||||
score += gatherRewards(value, factor);
|
||||
}
|
||||
|
||||
if (candidateNote.type === baseNote.type) {
|
||||
|
||||
Reference in New Issue
Block a user