mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Videos: Refactor codec, content and file type specifications #4770
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -148,7 +148,7 @@ func GetThumb(router *gin.RouterGroup) {
|
||||
}
|
||||
|
||||
// Find supported preview image if media file is not a JPEG or PNG.
|
||||
if f.NoJPEG() && f.NoPNG() {
|
||||
if f.NoJpeg() && f.NoPng() {
|
||||
if f, err = query.FileByPhotoUID(f.PhotoUID); err != nil {
|
||||
c.Data(http.StatusOK, "image/svg+xml", fileIconSvg)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user