mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +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
|
// 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user