Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 改进浏览器剪藏扩展处理带 `title` 的图片 Fix https://github.com/siyuan-note/siyuan/issues/7223

Liang Ding496caa256802
diff --git a/kernel/api/extension.go b/kernel/api/extension.go
index 9a3d3bd069..c7d0a4810f 100644
--- a/kernel/api/extension.go
+++ b/kernel/api/extension.go
@@ -129,7 +129,10 @@ func extensionCopy(c *gin.Context) {
}
} else if ast.NodeImage == n.Type {
if dest := n.ChildByType(ast.NodeLinkDest); nil != dest {
- dest.Tokens = []byte(uploaded[string(dest.Tokens)])
+ assetPath := uploaded[string(dest.Tokens)]
+ if "" != assetPath {
+ dest.Tokens = []byte(assetPath)
+ }
}
}
return ast.WalkContinue