mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2024-12-29 10:56:10 +00:00
Remove custom resolution
This can be abused to fill up storage
This commit is contained in:
parent
3bfa890751
commit
b40428f5aa
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue