mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 17:58:50 +01:00
🔥 The database-bound block no longer automatically adds to the database after being copied as a replica https://github.com/siyuan-note/siyuan/issues/12294
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
62bdaf9ec6
commit
f55e575253
5 changed files with 8 additions and 5 deletions
|
|
@ -1209,6 +1209,7 @@ func (tx *Transaction) doLargeInsert(previousID string) (ret *TxErr) {
|
|||
// 复制为副本时移除数据库绑定状态 https://github.com/siyuan-note/siyuan/issues/12294
|
||||
insertedNode.RemoveIALAttr(av.NodeAttrNameAvs)
|
||||
insertedNode.RemoveIALAttr(av.NodeAttrViewNames)
|
||||
insertedNode.RemoveIALAttrsByPrefix(av.NodeAttrViewStaticText)
|
||||
|
||||
if ast.NodeAttributeView == insertedNode.Type {
|
||||
// 插入数据库块时需要重新绑定其中已经存在的块
|
||||
|
|
@ -1387,6 +1388,7 @@ func (tx *Transaction) doInsert(operation *Operation) (ret *TxErr) {
|
|||
// 复制为副本时移除数据库绑定状态 https://github.com/siyuan-note/siyuan/issues/12294
|
||||
insertedNode.RemoveIALAttr(av.NodeAttrNameAvs)
|
||||
insertedNode.RemoveIALAttr(av.NodeAttrViewNames)
|
||||
insertedNode.RemoveIALAttrsByPrefix(av.NodeAttrViewStaticText)
|
||||
|
||||
if ast.NodeAttributeView == insertedNode.Type {
|
||||
// 插入数据库块时需要重新绑定其中已经存在的块
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue