Skip to content

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

:art: 移动端支持重新打开已经移除的工作空间 https://github.com/siyuan-note/siyuan/issues/7353

Liang Dingb0cd23245c7d
diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go
index 4fa5b78df7..ce6f82fbbf 100644
--- a/kernel/api/workspace.go
+++ b/kernel/api/workspace.go
@@ -134,17 +134,18 @@ func getMobileWorkspaces(c *gin.Context) {
return
}
- var names []string
+ var paths []string
for _, dir := range dirs {
if dir.IsDir() {
- if isInvalidWorkspacePath(filepath.Join(root, dir.Name())) {
+ absPath := filepath.Join(root, dir.Name())
+ if isInvalidWorkspacePath(absPath) {
continue
}
- names = append(names, dir.Name())
+ paths = append(paths, absPath)
}
}
- ret.Data = names
+ ret.Data = paths
}
func getWorkspaces(c *gin.Context) {