Skip to content
Snippets Groups Projects
Unverified Commit 0fc2362d authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Merge pull request #2777 from matrix-org/rav/fix_remote_thumbnails

Reinstate media download on thumbnail request
parents fefeb0ab 21bf87a1
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,11 @@ class ThumbnailResource(Resource):
@defer.inlineCallbacks
def _respond_remote_thumbnail(self, request, server_name, media_id, width,
height, method, m_type):
# TODO: Don't download the whole remote file
# We should proxy the thumbnail from the remote server instead of
# downloading the remote file and generating our own thumbnails.
yield self.media_repo.get_remote_media(server_name, media_id)
thumbnail_infos = yield self.store.get_remote_media_thumbnails(
server_name, media_id,
)
......
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