Skip to content

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

:art: Mobile App switch sync

Daniel9a9392c5af8f
diff --git a/kernel/model/session.go b/kernel/model/session.go
index 1a0f9fbc18..7acd82e6f8 100644
--- a/kernel/model/session.go
+++ b/kernel/model/session.go
@@ -212,6 +212,12 @@ func CheckAuth(c *gin.Context) {
c.Next()
return
}
+ if strings.HasPrefix(c.Request.RequestURI, "/api/sync/performSync") {
+ if util.ContainerIOS == util.Container || util.ContainerAndroid == util.Container {
+ c.Next()
+ return
+ }
+ }
}
// 通过 Cookie