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

Danielb93b8c039d04
diff --git a/kernel/api/clipboard.go b/kernel/api/clipboard.go
index 3f4a643bfb..ff0d33564e 100644
--- a/kernel/api/clipboard.go
+++ b/kernel/api/clipboard.go
@@ -33,9 +33,6 @@ func readFilePaths(c *gin.Context) {
if !gulu.OS.IsLinux() { // Linux 端不再支持 `粘贴为纯文本` 时处理文件绝对路径 https://github.com/siyuan-note/siyuan/issues/5825
paths, _ = clipboard.ReadFilePaths()
}
- if 1 > len(paths) {
- paths = []string{}
- }
data := map[string]map[string]any{}
for _, path := range paths {