From 91025b9f247ceb4f381dc1d0bc3f4a99dc0a7b48 Mon Sep 17 00:00:00 2001 From: Aaron Liu <912394456@qq.com> Date: Sun, 25 Jun 2023 18:53:37 +0800 Subject: [PATCH] fix(thumb): cannot generate thumbnails in slave mode --- pkg/filesystem/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filesystem/image.go b/pkg/filesystem/image.go index db16ffc..dc573dd 100644 --- a/pkg/filesystem/image.go +++ b/pkg/filesystem/image.go @@ -134,7 +134,7 @@ func (fs *FileSystem) generateThumbnail(ctx context.Context, file *model.File) e // Provide file source path for local policy files src := "" - if file.GetPolicy().Type == "local" { + if conf.SystemConfig.Mode == "slave" || file.GetPolicy().Type == "local" { src = file.SourceName }