Skip to content

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

:art: Display a confirmation prompt when inserting large assets 256MB https://github.com/siyuan-note/siyuan/issues/16685

Daniel6188b4fb3214
diff --git a/kernel/api/clipboard.go b/kernel/api/clipboard.go
index c1e1d5827e..6d5b8f8c78 100644
--- a/kernel/api/clipboard.go
+++ b/kernel/api/clipboard.go
@@ -34,7 +34,7 @@ func readFilePaths(c *gin.Context) {
paths, _ = clipboard.ReadFilePaths()
}
- var data []map[string]any
+ data := []map[string]any{}
for _, path := range paths {
fi, err := os.Stat(path)
if nil != err {