fix(thumb): cannot generate thumbnails in slave mode
This commit is contained in:
parent
243c312066
commit
91025b9f24
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue