mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 18:34:56 -04:00
Ensure media is in local cache before thumbnailing
This commit is contained in:
parent
be0dfcd4a2
commit
4a53f3a3e8
3 changed files with 40 additions and 10 deletions
|
@ -162,7 +162,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