Skip to content

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

:art: Improve minimum version requirements for marketplace packages https://github.com/siyuan-note/siyuan/issues/16688

Daniel24a0c91fae7e
diff --git a/kernel/model/plugin.go b/kernel/model/plugin.go
index 0865cda9e6..0b4947a55f 100644
--- a/kernel/model/plugin.go
+++ b/kernel/model/plugin.go
@@ -65,14 +65,14 @@ func SetPetalEnabled(name string, enabled bool, frontend string) (ret *Petal, er
ret.DisabledInPublish = disabledInPublish
ret.DisallowInstall = disallowInstall
- if incompatible {
+ if enabled && incompatible {
err = fmt.Errorf(Conf.Language(205))
logging.LogInfof("plugin [%s] is incompatible [%s]", name, frontend)
return
}
- if disallowInstall {
- msg := "requires upgrading SiYuan to v${x} or later to use"
+ if enabled && disallowInstall {
+ msg := "require upgrade SiYuan to use this plugin [" + name + "]"
err = fmt.Errorf(msg)
logging.LogInfof(msg)
return