An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Fix https://github.com/siyuan-note/siyuan/issues/17078
Danielc7dc67e05540
diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex 237dce9796..fc34163638 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -1008,8 +1008,6 @@ func IsSubscriber() bool {}func IsPaidUser() bool {- // S3/WebDAV data sync and backup are available for a fee https://github.com/siyuan-note/siyuan/issues/8780-if IsSubscriber() {return true}diff --git a/kernel/model/sync.go b/kernel/model/sync.goindex b25eac3f34..7a61b29340 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -250,10 +250,14 @@ func checkSync(boot, exit, byHand bool) bool {switch Conf.Sync.Provider {case conf.ProviderSiYuan:if !IsSubscriber() {+ Conf.Sync.Enabled = false+ Conf.Save()return false}case conf.ProviderWebDAV, conf.ProviderS3, conf.ProviderLocal:if !IsPaidUser() {+ Conf.Sync.Enabled = false+ Conf.Save()return false}}