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

Merge pull request #2814 from matrix-org/rav/fix_urlcache_thumbs

Use the right path for url_preview thumbnails
parents cd871a30 ad7ec63d
No related branches found
No related tags found
No related merge requests found
...@@ -164,6 +164,14 @@ class MediaStorage(object): ...@@ -164,6 +164,14 @@ class MediaStorage(object):
str str
""" """
if file_info.url_cache: if file_info.url_cache:
if file_info.thumbnail:
return self.filepaths.url_cache_thumbnail_rel(
media_id=file_info.file_id,
width=file_info.thumbnail_width,
height=file_info.thumbnail_height,
content_type=file_info.thumbnail_type,
method=file_info.thumbnail_method,
)
return self.filepaths.url_cache_filepath_rel(file_info.file_id) return self.filepaths.url_cache_filepath_rel(file_info.file_id)
if file_info.server_name: if file_info.server_name:
......
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