Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16688#issuecomment-3694706501

Daniel1c760a84d98d
diff --git a/kernel/model/plugin.go b/kernel/model/plugin.go
index 0b4947a55f..4436627b3c 100644
--- a/kernel/model/plugin.go
+++ b/kernel/model/plugin.go
@@ -111,6 +111,10 @@ func LoadPetals(frontend string, isPublish bool) (ret []*Petal) {
for _, petal := range petals {
_, petal.DisplayName, petal.Incompatible, petal.DisabledInPublish, petal.DisallowInstall = bazaar.ParseInstalledPlugin(petal.Name, frontend)
if !petal.Enabled || petal.Incompatible || (isPublish && petal.DisabledInPublish) || petal.DisallowInstall {
+ if petal.DisallowInstall {
+ SetPetalEnabled(petal.Name, false, frontend)
+ logging.LogInfof("plugin [%s] disallowed install, auto disabled", petal.Name)
+ }
continue
}