Revert "removed redundant ocis config parsing"

This reverts commit c700ccab1f.
This commit is contained in:
A.Unger
2021-11-22 22:27:29 +01:00
parent c700ccab1f
commit 8797cf3b5a
12 changed files with 58 additions and 1 deletions
+4
View File
@@ -20,6 +20,10 @@ func ThumbnailsCommand(cfg *config.Config) *cli.Command {
command.PrintVersion(cfg.Thumbnails),
},
Before: func(ctx *cli.Context) error {
if err := ParseConfig(ctx, cfg); err != nil {
return err
}
if cfg.Commons != nil {
cfg.Thumbnails.Commons = cfg.Commons
}