Update thumbnail.go

pull/2868/head
Darren Yu 2025-09-03 12:25:25 +08:00 committed by GitHub
parent 7e460c58bd
commit 721172bedc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -185,9 +185,8 @@ func (m *manager) generateThumb(ctx context.Context, uri *fs.URI, ext string, es
Uri: uri, Uri: uri,
Size: fileInfo.Size(), Size: fileInfo.Size(),
SavePath: fmt.Sprintf( SavePath: fmt.Sprintf(
"%s.%s%s", "%s%s",
es.Entity().Source(), es.Entity().Source(),
util.RandStringRunes(16),
m.settings.ThumbEntitySuffix(ctx), m.settings.ThumbEntitySuffix(ctx),
), ),
MimeType: m.dep.MimeDetector(ctx).TypeByName("thumb.jpg"), MimeType: m.dep.MimeDetector(ctx).TypeByName("thumb.jpg"),