mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
sometimes urls are not decoded properly
This commit is contained in:
parent
b1dab35d12
commit
c9fa9a9748
1 changed files with 1 additions and 0 deletions
|
@ -981,6 +981,7 @@ def make_image_sizes_async(file_id, thumbnail_width, medium_width, directory):
|
|||
if content_type_parts:
|
||||
file_ext = '.' + content_type_parts[-1]
|
||||
else:
|
||||
file_ext = file_ext.replace('%3f', '?') # sometimes urls are not decoded properly
|
||||
if '?' in file_ext:
|
||||
file_ext = file_ext.split('?')[0]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue