From c7dc67e055409c8fcd0e1abde043a3502f44cba6 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 22 Feb 2026 11:33:11 +0800 Subject: [PATCH] :art: Fix https://github.com/siyuan-note/siyuan/issues/17078 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/conf.go | 2 -- kernel/model/sync.go | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 237dce979..fc3416363 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.go index b25eac3f3..7a61b2934 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 } }