summary refs log tree commit diff
path: root/synapse/rest/media
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-01-22 12:27:42 +0000
committerBrendan Abolivier <babolivier@matrix.org>2020-01-22 12:27:42 +0000
commited83c3a018714f20bb660c39e1a42e856eb3bedb (patch)
tree513d09dae517d70593833500e210a75d8fdc7a1f /synapse/rest/media
parentFix and add test to deprecated quarantine media admin api (#6756) (diff)
downloadsynapse-ed83c3a018714f20bb660c39e1a42e856eb3bedb.tar.xz
Fix typo in _select_thumbnail
Diffstat (limited to 'synapse/rest/media')
-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: