Browse Source

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

Daniel 1 year ago
parent
commit
070e2667b6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      kernel/model/backlink.go

+ 3 - 1
kernel/model/backlink.go

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