feat(sharing): enable sharing by default (#5714)

Flip the EnableSharing default from false to true so new installations have the sharing feature available out of the box. Users can still disable it via the EnableSharing config option.

The native API only registers the /share route when sharing is enabled, so the nativeapi tests that build the router without wiring a share service now explicitly disable sharing in their setup to avoid registering a route backed by a nil service.
This commit is contained in:
Deluan Quintão 2026-07-04 19:55:34 -04:00 • committed by GitHub
commit 37e75c4354
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 1 deletions

View file

@ -29,6 +29,7 @@ var _ = Describe("Plugin API", func() {
BeforeEach(func() {
DeferCleanup(configtest.SetupConfig())
conf.Server.EnableSharing = false
conf.Server.Plugins.Enabled = true
ds = &tests.MockDataStore{}
mockManager = &tests.MockPluginManager{}