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

Liang Ding8945626fc01b
diff --git a/kernel/model/file.go b/kernel/model/file.go
index 174895a947..55785b4798 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -1198,7 +1198,6 @@ func RemoveDoc(boxID, p string) (err error) {
return errors.New(fmt.Sprintf(Conf.Language(70), box.Name, absPath, err))
}
- indexHistoryDir(filepath.Base(historyDir), NewLute())
copyDocAssetsToDataAssets(boxID, p)
rootID := tree.ID
@@ -1212,6 +1211,7 @@ func RemoveDoc(boxID, p string) (err error) {
return
}
}
+ indexHistoryDir(filepath.Base(historyDir), NewLute())
box.removeSort(rootID, p)
if err = box.Remove(p); nil != err {