Remove custom resolution

This can be abused to fill up storage
This commit is contained in:
Michał 2023-04-05 16:33:36 +00:00
parent 3bfa890751
commit b40428f5aa

View file

@ -40,8 +40,6 @@ def generate_thumbnail(file_name, resolution, ext=None):
res_x, res_y = (350, 350)
elif resolution in ['icon', 'favicon']:
res_x, res_y = (10, 10)
elif len(resolution.split('x')) == 2:
res_x, res_y = resolution.split('x')
else:
return None