mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-01 12:26:13 +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)
|
res_x, res_y = (350, 350)
|
||||||
elif resolution in ['icon', 'favicon']:
|
elif resolution in ['icon', 'favicon']:
|
||||||
res_x, res_y = (10, 10)
|
res_x, res_y = (10, 10)
|
||||||
elif len(resolution.split('x')) == 2:
|
|
||||||
res_x, res_y = resolution.split('x')
|
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue