mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-27 01:51:56 +08:00
fix(thumb): cannot generate thumbnails in slave mode
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user