Skip to content

Commit

Permalink
🎨 Backlink count at the doc block title including sub-blocks #13791
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 12, 2025
1 parent 1cdf74b commit 5a9bb84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/model/blockinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,16 +345,16 @@ type RefDefs struct {
DefIDs []string `json:"defIDs"`
}

func GetBlockRefs(defID string) (refDefs []*RefDefs, originalRefIDs map[string]string) {
func GetBlockRefs(defID string) (refDefs []*RefDefs, originalRefBlockIDs map[string]string) {
refDefs = []*RefDefs{}
originalRefIDs = map[string]string{}
originalRefBlockIDs = map[string]string{}
bt := treenode.GetBlockTree(defID)
if nil == bt {
return
}

refDefs = queryBlockRefDefs(bt)
originalRefIDs = buildBacklinkListItemRefs(refDefs)
originalRefBlockIDs = buildBacklinkListItemRefs(refDefs)
return
}

Expand Down

0 comments on commit 5a9bb84

Please sign in to comment.