Skip to content

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

:art: Don't load plugin when the user hasn't agreed to trust bazaar content yet Fix https://github.com/siyuan-note/siyuan/issues/9426

Danieldaa9ddfd50ee
diff --git a/kernel/model/plugin.go b/kernel/model/plugin.go
index 1bdccc7097..f873b7316f 100644
--- a/kernel/model/plugin.go
+++ b/kernel/model/plugin.go
@@ -74,7 +74,7 @@ func SetPetalEnabled(name string, enabled bool, frontend string) (ret *Petal, er
func LoadPetals(frontend string) (ret []*Petal) {
ret = []*Petal{}
- if Conf.Bazaar.PetalDisabled {
+ if Conf.Bazaar.PetalDisabled || !Conf.Bazaar.Trust {
return
}