summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-01-22 13:21:00 +0000
committerGitHub <noreply@github.com>2020-01-22 13:21:00 +0000
commitae6cf586b0186981a6b74c62169731d819249d93 (patch)
treecbaa73a4780e8f61a60f1cc1815eeb7ca9842bbe /synapse/rest
parentFix and add test to deprecated quarantine media admin api (#6756) (diff)
parentLint + changelog (diff)
downloadsynapse-ae6cf586b0186981a6b74c62169731d819249d93.tar.xz
Merge pull request #6764 from matrix-org/babolivier/fix-thumbnail
Fix typo in _select_thumbnail
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/media/v1/thumbnail_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/thumbnail_resource.py b/synapse/rest/media/v1/thumbnail_resource.py
index eee93b4313..d57480f761 100644
--- a/synapse/rest/media/v1/thumbnail_resource.py
+++ b/synapse/rest/media/v1/thumbnail_resource.py
@@ -331,7 +331,7 @@ class ThumbnailResource(DirectServeResource):
                             )
                         )
             if crop_info_list:
-                return min(crop_info_list2)[-1]
+                return min(crop_info_list)[-1]
             else:
                 return min(crop_info_list2)[-1]
         else: