From b029b9bdaa93418df42777b068c27fde2bdae326 Mon Sep 17 00:00:00 2001 From: Sorunome <mail@sorunome.de> Date: Sun, 19 Jul 2020 22:54:59 +0200 Subject: [PATCH] Bring back defaultAnimated option --- api/r0/thumbnail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/r0/thumbnail.go b/api/r0/thumbnail.go index 2105eb08..fa8ffcbc 100644 --- a/api/r0/thumbnail.go +++ b/api/r0/thumbnail.go @@ -45,7 +45,7 @@ func ThumbnailMedia(r *http.Request, rctx rcontext.RequestContext, user api.User width := 0 height := 0 - animated := false + animated := rctx.Config.Thumbnails.AllowAnimated && rctx.Config.Thumbnails.DefaultAnimated if widthStr != "" { parsedWidth, err := strconv.Atoi(widthStr) -- GitLab