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/13987

Danielcdf60c11054d
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index c6c6de6bdb..2744d0080b 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -1304,6 +1304,9 @@ func (tx *Transaction) doInsert0(operation *Operation, tree *parse.Tree) (ret *T
insertedNode.RemoveIALAttr(av.NodeAttrViewNames)
insertedNode.RemoveIALAttrsByPrefix(av.NodeAttrViewStaticText)
+ // 复制为副本时移除闪卡相关属性 https://github.com/siyuan-note/siyuan/issues/13987
+ insertedNode.RemoveIALAttr(NodeAttrRiffDecks)
+
if ast.NodeAttributeView == insertedNode.Type {
// 插入数据库块时需要重新绑定其中已经存在的块
// 比如剪切操作时,会先进行 delete 数据库解绑块,这里需要重新绑定 https://github.com/siyuan-note/siyuan/issues/13031