Skip to content

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

:art: 嵌入块纳入引用计数和反链 https://github.com/siyuan-note/siyuan/issues/7096

Liang Ding98f682e50799
diff --git a/kernel/sql/database.go b/kernel/sql/database.go
index b11a120030..3c8ca4230f 100644
--- a/kernel/sql/database.go
+++ b/kernel/sql/database.go
@@ -361,7 +361,7 @@ func buildEmbedRef(tree *parse.Tree, embedNode *ast.Node) *Ref {
RootID: tree.ID,
Box: tree.Box,
Path: tree.Path,
- Content: "",
+ Content: "", // 通过嵌入块构建引用时定义块可能还没有入库,所以这里统一不填充内容
Markdown: "",
Type: treenode.TypeAbbr(embedNode.Type.String()),
}