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

Daniel9d9c230577fd
diff --git a/kernel/model/attribute_view_render.go b/kernel/model/attribute_view_render.go
index 1aa20c70a5..ddbc82b741 100644
--- a/kernel/model/attribute_view_render.go
+++ b/kernel/model/attribute_view_render.go
@@ -522,9 +522,11 @@ func RenderHistoryAttributeView(blockID, avID, viewID, query string, page, pageS
historyDir := matches[0]
avJSONPath := filepath.Join(historyDir, "storage", "av", avID+".json")
if !gulu.File.IsExist(avJSONPath) {
+ logging.LogWarnf("attribute view [%s] not found in history data [%s], use current data instead", avID, historyDir)
avJSONPath = filepath.Join(util.DataDir, "storage", "av", avID+".json")
}
if !gulu.File.IsExist(avJSONPath) {
+ logging.LogWarnf("attribute view [%s] not found in current data", avID)
attrView = av.NewAttributeView(avID)
} else {
data, readErr := os.ReadFile(avJSONPath)