Skip to content

Commit

Permalink
fix(thumb): cannot generate thumbnails in slave mode
Browse files Browse the repository at this point in the history
  • Loading branch information
HFO4 committed Jun 25, 2023
1 parent 243c312 commit 91025b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/filesystem/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 91025b9

Please sign in to comment.