🎨 Backlink count at the doc block title including sub-blocks https://github.com/siyuan-note/siyuan/issues/13791

This commit is contained in:
Daniel 2025-01-13 12:26:19 +08:00
parent 5a9bb84641
commit ecf9d3a7d8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -72,7 +72,15 @@ func getMirrorDatabaseBlocks(c *gin.Context) {
}
avID := arg["avID"].(string)
ret.Data = treenode.GetMirrorAttrViewBlockIDs(avID)
blockIDs := treenode.GetMirrorAttrViewBlockIDs(avID)
var retRefDefs []model.RefDefs
for _, blockID := range blockIDs {
retRefDefs = append(retRefDefs, model.RefDefs{RefID: blockID, DefIDs: []string{}})
}
ret.Data = map[string]any{
"refDefs": retRefDefs,
}
}
func setDatabaseBlockView(c *gin.Context) {