Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Danielecf9d3a7d884
diff --git a/kernel/api/av.go b/kernel/api/av.go
index 930f983027..66de4cbf75 100644
--- a/kernel/api/av.go
+++ b/kernel/api/av.go
@@ -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) {