mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-21 04:14:09 -04:00
Merge pull request #2791 from matrix-org/erikj/media_storage_refactor
Ensure media is in local cache before thumbnailing
This commit is contained in:
commit
1f881e0746
6 changed files with 156 additions and 12 deletions
|
@ -164,7 +164,8 @@ class ThumbnailResource(Resource):
|
|||
|
||||
# Okay, so we generate one.
|
||||
file_path = yield self.media_repo.generate_local_exact_thumbnail(
|
||||
media_id, desired_width, desired_height, desired_method, desired_type
|
||||
media_id, desired_width, desired_height, desired_method, desired_type,
|
||||
url_cache=media_info["url_cache"],
|
||||
)
|
||||
|
||||
if file_path:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue