Skip to content

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

:art: Database values no longer correspond to block attributes Fix https://github.com/siyuan-note/siyuan/issues/9293

Daniel4efdae774539
diff --git a/kernel/filesys/json_parser.go b/kernel/filesys/json_parser.go
index 192ba71049..e333a8e29a 100644
--- a/kernel/filesys/json_parser.go
+++ b/kernel/filesys/json_parser.go
@@ -174,6 +174,7 @@ func fixLegacyData(tip, node *ast.Node, idMap *map[string]bool, needFix, needMig
for _, kv := range node.KramdownIAL {
if strings.Contains(kv[0], "custom-av-key-") {
+ // TODO: 数据库正式上线以后移除这里的修复
// 删除数据库属性键值对 https://github.com/siyuan-note/siyuan/issues/9293
node.RemoveIALAttr(kv[0])
*needFix = true