Skip to content
Snippets Groups Projects
Unverified Commit 95a6256d authored by Travis Ralston's avatar Travis Ralston Committed by GitHub
Browse files

Merge pull request #335 from Sorunome/soru/animated

feat: support `org.matrix.msc2705.animated` query parameter
parents a0b2a119 54d2f683
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,9 @@ func ThumbnailMedia(r *http.Request, rctx rcontext.RequestContext, user api.User
heightStr := r.URL.Query().Get("height")
method := r.URL.Query().Get("method")
animatedStr := r.URL.Query().Get("animated")
if animatedStr == "" {
animatedStr = r.URL.Query().Get("org.matrix.msc2705.animated")
}
if widthStr == "" || heightStr == "" {
return api.BadRequest("Width and height are required")
......
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