diff options
author | Matthew Hodgson <matthew@matrix.org> | 2016-04-02 02:31:45 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2016-04-02 02:31:45 +0100 |
commit | 93771579610d723488486f40622d6c99ed061d7f (patch) | |
tree | 5bf1d616db14b586c9885ec4fa6f82e9f6f7db23 /synapse/rest | |
parent | pass back SVGs as their own thumbnails (diff) | |
download | synapse-93771579610d723488486f40622d6c99ed061d7f.tar.xz |
how was _respond_default_thumbnail ever meant to work?
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/media/v1/thumbnail_resource.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/media/v1/thumbnail_resource.py b/synapse/rest/media/v1/thumbnail_resource.py index 1e71738bc4..513b445688 100644 --- a/synapse/rest/media/v1/thumbnail_resource.py +++ b/synapse/rest/media/v1/thumbnail_resource.py @@ -228,6 +228,8 @@ class ThumbnailResource(BaseMediaResource): @defer.inlineCallbacks def _respond_default_thumbnail(self, request, media_info, width, height, method, m_type): + # XXX: how is this meant to work? store.get_default_thumbnails + # appears to always return [] so won't this always 404? media_type = media_info["media_type"] top_level_type = media_type.split("/")[0] sub_type = media_type.split("/")[-1].split(";")[0] |