An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve getRefText https://github.com/siyuan-note/siyuan/issues/10259
Danielfac354c23c23
diff --git a/kernel/api/block.go b/kernel/api/block.goindex e6d32b2a37..4e9d3d050f 100644--- a/kernel/api/block.go+++ b/kernel/api/block.go@@ -318,7 +318,12 @@ func getRefText(c *gin.Context) {id := arg["id"].(string)model.WaitForWritingFiles()- ret.Data = model.GetBlockRefText(id)+ refText := model.GetBlockRefText(id)+ if "" == refText {+ // 空块返回 id https://github.com/siyuan-note/siyuan/issues/10259+ refText = id+ }+ ret.Data = refText}func getRefIDs(c *gin.Context) {