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: `Convert network images/assets to local` supports URL-encoded local file names https://github.com/siyuan-note/siyuan/issues/9929
Daniel2d0613637ef1
diff --git a/kernel/model/assets.go b/kernel/model/assets.goindex d47ec31945..c41e90dbbd 100644--- a/kernel/model/assets.go+++ b/kernel/model/assets.go@@ -113,7 +113,7 @@ func NetImg2LocalAssets(rootID, originalURL string) (err error) {u := string(dest)[7:]unescaped, _ := url.PathUnescape(u)if unescaped != u {- // `Convert network images to local` supports URL-encoded local file names https://github.com/siyuan-note/siyuan/issues/9929+ // `Convert network images/assets to local` supports URL-encoded local file names https://github.com/siyuan-note/siyuan/issues/9929u = unescaped}if !gulu.File.IsExist(u) || gulu.File.IsDir(u) {@@ -274,6 +274,11 @@ func NetAssets2LocalAssets(rootID string) (err error) {if bytes.HasPrefix(bytes.ToLower(dest), []byte("file://")) { // 处理本地文件链接u := string(dest)[7:]+ unescaped, _ := url.PathUnescape(u)+ if unescaped != u {+ // `Convert network images/assets to local` supports URL-encoded local file names https://github.com/siyuan-note/siyuan/issues/9929+ u = unescaped+ }if !gulu.File.IsExist(u) || gulu.File.IsDir(u) {return ast.WalkContinue}