An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 复制资源文件后导出父级文档再导入问题 Fix https://github.com/siyuan-note/siyuan/issues/5301
Liang Dingc2855cf46958
diff --git a/kernel/model/export.go b/kernel/model/export.goindex fca9dc3f67..df5c2f09e4 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -531,7 +531,6 @@ func exportMarkdownZip(boxID, baseFolderName string, docPaths []string) (zipPathreturn}- copiedAssets := hashset.New()luteEngine := util.NewLute()for _, p := range docPaths {docIAL := box.docIAL(p)@@ -572,10 +571,6 @@ func exportMarkdownZip(boxID, baseFolderName string, docPaths []string) (zipPathasset = asset[:strings.LastIndex(asset, "?")]}- if copiedAssets.Contains(asset) {- continue- }-srcPath, err := GetAssetAbsPath(asset)if nil != err {util.LogWarnf("get asset [%s] abs path failed: %s", asset, err)@@ -592,8 +587,6 @@ func exportMarkdownZip(boxID, baseFolderName string, docPaths []string) (zipPathutil.LogErrorf("copy asset from [%s] to [%s] failed: %s", srcPath, destPath, err)continue}-- copiedAssets.Add(asset)}}