🎨 Count backlink mentions using total occurrences https://github.com/siyuan-note/siyuan/issues/11173

This commit is contained in:
Daniel 2024-04-28 10:23:17 +08:00
parent 544df28920
commit 070e2667b6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -315,7 +315,9 @@ func GetBacklink2(id, keyword, mentionKeyword string, sortMode, mentionSortMode
return backmentions[i].ID > backmentions[j].ID
})
mentionsCount = len(backmentions)
for _, backmention := range backmentions {
mentionsCount += backmention.Count
}
// 添加笔记本名称
var boxIDs []string