mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 13:28:48 +01:00
🎨 Backlink count at the doc block title including sub-blocks https://github.com/siyuan-note/siyuan/issues/13791
This commit is contained in:
parent
1cdf74ba09
commit
5a9bb84641
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue