mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-10 06:10:05 -06:00
Add favorites capability
This commit is contained in:
5
changelog/unreleased/favorites-capability.md
Normal file
5
changelog/unreleased/favorites-capability.md
Normal file
@@ -0,0 +1,5 @@
|
||||
Enhancement: Favorites capability
|
||||
|
||||
We've added a capability for the storage frontend which can be used to announce to clients whether or not favorites are supported. By default this is disabled because the listing of favorites doesn't survive service restarts at the moment.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2599
|
||||
@@ -83,6 +83,7 @@ func Frontend(cfg *config.Config) *cli.Command {
|
||||
"versioning": true,
|
||||
"archivers": archivers,
|
||||
"app_providers": appProviders,
|
||||
"favorites": cfg.Reva.Frontend.Favorites,
|
||||
}
|
||||
|
||||
if cfg.Reva.DefaultUploadProtocol == "tus" {
|
||||
|
||||
@@ -149,6 +149,7 @@ type FrontendPort struct {
|
||||
AppProviderPrefix string
|
||||
ArchiverPrefix string
|
||||
DatagatewayPrefix string
|
||||
Favorites bool
|
||||
OCDavPrefix string
|
||||
OCSPrefix string
|
||||
OCSSharePrefix string
|
||||
|
||||
@@ -129,6 +129,13 @@ func FrontendWithConfig(cfg *config.Config) []cli.Flag {
|
||||
EnvVars: []string{"STORAGE_FRONTEND_DATAGATEWAY_PREFIX"},
|
||||
Destination: &cfg.Reva.Frontend.DatagatewayPrefix,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "favorites",
|
||||
Value: flags.OverrideDefaultBool(cfg.Reva.Frontend.Favorites, false),
|
||||
Usage: "announces favorites support to clients",
|
||||
EnvVars: []string{"STORAGE_FRONTEND_FAVORITES"},
|
||||
Destination: &cfg.Reva.Frontend.Favorites,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "ocdav-prefix",
|
||||
Value: flags.OverrideDefaultString(cfg.Reva.Frontend.OCDavPrefix, ""),
|
||||
|
||||
Reference in New Issue
Block a user