Skip to content

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

:art: Improve av https://github.com/siyuan-note/siyuan/issues/15561#issuecomment-3184746195

Daniel69737d6c4b4b
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 8db4ae7e94..e1280793db 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -73,6 +73,12 @@ func GetAttrViewAddingBlockDefaultValues(avID, viewID, groupID, previousBlockID,
}
ret = getAttrViewAddingBlockDefaultValues(attrView, view, groupView, previousBlockID, addingBlockID)
+ for _, value := range ret {
+ // 主键都不返回内容,避免闪烁 https://github.com/siyuan-note/siyuan/issues/15561#issuecomment-3184746195
+ if av.KeyTypeBlock == value.Type {
+ value.Block.Content = ""
+ }
+ }
return
}