From 962a9dff56e52d8dfac1a5941fb11c65d8ccd2a7 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 9 Nov 2024 16:33:59 +0800 Subject: [PATCH] :art: Apps in Chinese mainland app stores no longer provide AI access settings https://github.com/siyuan-note/siyuan/issues/13051 --- kernel/model/conf.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 67947f333c0..ae7ecb3a1e7 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -221,6 +221,9 @@ func InitConf() { util.CurrentCloudRegion = Conf.CloudRegion Conf.System.DisabledFeatures = util.DisabledFeatures + if 1 > len(Conf.System.DisabledFeatures) { + Conf.System.DisabledFeatures = []string{} + } if nil == Conf.Tag { Conf.Tag = conf.NewTag()