From 08bba954280371bf6b469c99006005c159af1b95 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Tue, 18 Mar 2025 13:10:09 +0100 Subject: [PATCH] feat: clear edition fallback Clears the `edition` fallback on "Community" in the capabilities. We want to have this as empty string without any fallback. --- services/frontend/pkg/config/defaults/defaultconfig.go | 2 +- services/frontend/pkg/revaconfig/config.go | 2 +- services/ocdav/pkg/config/defaults/defaultconfig.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/frontend/pkg/config/defaults/defaultconfig.go b/services/frontend/pkg/config/defaults/defaultconfig.go index c48944ced3..b5b5eff42b 100644 --- a/services/frontend/pkg/config/defaults/defaultconfig.go +++ b/services/frontend/pkg/config/defaults/defaultconfig.go @@ -87,7 +87,7 @@ func DefaultConfig() *config.Config { DefaultUploadProtocol: "tus", DefaultLinkPermissions: 1, SearchMinLength: 3, - Edition: "Community", + Edition: "", Checksums: config.Checksums{ SupportedTypes: []string{"sha1", "md5", "adler32"}, PreferredUploadType: "sha1", diff --git a/services/frontend/pkg/revaconfig/config.go b/services/frontend/pkg/revaconfig/config.go index e7353e8e70..f87a99cee8 100644 --- a/services/frontend/pkg/revaconfig/config.go +++ b/services/frontend/pkg/revaconfig/config.go @@ -339,7 +339,7 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string }, "version": map[string]interface{}{ "product": "OpenCloud", - "edition": "Community", + "edition": "", "major": version.ParsedLegacy().Major(), "minor": version.ParsedLegacy().Minor(), "micro": version.ParsedLegacy().Patch(), diff --git a/services/ocdav/pkg/config/defaults/defaultconfig.go b/services/ocdav/pkg/config/defaults/defaultconfig.go index be19a0d2da..a2eca1c8c5 100644 --- a/services/ocdav/pkg/config/defaults/defaultconfig.go +++ b/services/ocdav/pkg/config/defaults/defaultconfig.go @@ -92,7 +92,7 @@ func DefaultConfig() *config.Config { ProductVersion: version.GetString(), Product: "OpenCloud", ProductName: "OpenCloud", - Edition: "Community", + Edition: "", }, } }