Skip to content
Snippets Groups Projects
Unverified Commit b029b9bd authored by Sorunome's avatar Sorunome
Browse files

Bring back defaultAnimated option

parent 727f2d71
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ func ThumbnailMedia(r *http.Request, rctx rcontext.RequestContext, user api.User ...@@ -45,7 +45,7 @@ func ThumbnailMedia(r *http.Request, rctx rcontext.RequestContext, user api.User
width := 0 width := 0
height := 0 height := 0
animated := false animated := rctx.Config.Thumbnails.AllowAnimated && rctx.Config.Thumbnails.DefaultAnimated
if widthStr != "" { if widthStr != "" {
parsedWidth, err := strconv.Atoi(widthStr) parsedWidth, err := strconv.Atoi(widthStr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment