mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02: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
6a817cecf1
commit
d1020e3729
2 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue