Skip to content

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

:art: New a row in the database no longer require to create a relevant doc https://github.com/siyuan-note/siyuan/issues/9294

Daniela5cefa369b57
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 5de11b64f9..629ccb55c3 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -444,7 +444,11 @@ func addAttributeViewBlock(blockID string, operation *Operation, tree *parse.Tre
}
}
- value := &av.Value{ID: ast.NewNodeID(), KeyID: blockValues.Key.ID, BlockID: blockID, Type: av.KeyTypeBlock, IsDetached: operation.IsDetached, Block: &av.ValueBlock{ID: blockID, Content: getNodeRefText(node)}}
+ var content string
+ if !operation.IsDetached {
+ content = getNodeRefText(node)
+ }
+ value := &av.Value{ID: ast.NewNodeID(), KeyID: blockValues.Key.ID, BlockID: blockID, Type: av.KeyTypeBlock, IsDetached: operation.IsDetached, Block: &av.ValueBlock{ID: blockID, Content: content}}
blockValues.Values = append(blockValues.Values, value)
if !operation.IsDetached {