🎨 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 13:45:56 +08:00
parent 6a817cecf1
commit d1020e3729
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 9 additions and 0 deletions

View file

@ -77,6 +77,9 @@ func getMirrorDatabaseBlocks(c *gin.Context) {
for _, blockID := range blockIDs {
retRefDefs = append(retRefDefs, model.RefDefs{RefID: blockID, DefIDs: []string{}})
}
if 1 > len(retRefDefs) {
retRefDefs = []model.RefDefs{}
}
ret.Data = map[string]any{
"refDefs": retRefDefs,