An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 改进导入 data.zip 和 .sy.zip 校验失败时的提示 Fix https://github.com/siyuan-note/siyuan/issues/7738
Liang Dingd398b6706502
diff --git a/kernel/model/import.go b/kernel/model/import.goindex 4fa1f52a28..1bd8d6c96e 100644--- a/kernel/model/import.go+++ b/kernel/model/import.go@@ -115,6 +115,11 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {return errors.New(Conf.Language(199))}unzipRootPath := unzipRootPaths[0]+ name := filepath.Base(unzipRootPath)+ if strings.HasPrefix(name, "data-20") && len("data-20230321175442") == len(name) {+ return errors.New(Conf.Language(199))+ }+luteEngine := util.NewLute()blockIDs := map[string]string{}trees := map[string]*parse.Tree{}