소스 검색

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

Daniel 1 년 전
부모
커밋
070e2667b6
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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
 	})
 
-	mentionsCount = len(backmentions)
+	for _, backmention := range backmentions {
+		mentionsCount += backmention.Count
+	}
 
 	// 添加笔记本名称
 	var boxIDs []string