fix(thumb): cannot generate thumbnails in slave mode

pull/1763/head
Aaron Liu 2 years ago
parent 243c312066
commit 91025b9f24

@ -134,7 +134,7 @@ func (fs *FileSystem) generateThumbnail(ctx context.Context, file *model.File) e
// Provide file source path for local policy files // Provide file source path for local policy files
src := "" src := ""
if file.GetPolicy().Type == "local" { if conf.SystemConfig.Mode == "slave" || file.GetPolicy().Type == "local" {
src = file.SourceName src = file.SourceName
} }

Loading…
Cancel
Save