Skip to content

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

:art: Shallow clone the corresponding database when the template contains database blocks https://github.com/siyuan-note/siyuan/issues/9494

Daniel8a789a857318
diff --git a/kernel/model/template.go b/kernel/model/template.go
index b5b5c8073d..fb4052b9cf 100644
--- a/kernel/model/template.go
+++ b/kernel/model/template.go
@@ -251,6 +251,7 @@ func renderTemplate(p, id string, preview bool) (string, error) {
// 重新生成 ID
n.ID = ast.NewNodeID()
n.SetIALAttr("id", n.ID)
+ n.RemoveIALAttr(av.NodeAttrNameAvs)
// Blocks created via template update time earlier than creation time https://github.com/siyuan-note/siyuan/issues/8607
refreshUpdated(n)