Skip to content

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

:art: 移动端支持多工作空间 Fix https://github.com/siyuan-note/siyuan/issues/4642

Liang Ding43cc09af8d74
diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go
index 6d281866df..d29a7c64a9 100644
--- a/kernel/api/workspace.go
+++ b/kernel/api/workspace.go
@@ -24,6 +24,7 @@ import (
"path/filepath"
"strings"
"time"
+ "unicode/utf8"
"github.com/88250/gulu"
"github.com/gin-gonic/gin"
@@ -233,5 +234,8 @@ func isInvalidWorkspacePath(absPath string) bool {
if !gulu.File.IsValidFilename(name) {
return true
}
+ if 16 < utf8.RuneCountInString(name) {
+ return true
+ }
return "siyuan" == name || "conf" == name || "home" == name || "data" == name || "temp" == name
}