mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Remove custom resolution
This can be abused to fill up storage
This commit is contained in:
parent
3bfa890751
commit
b40428f5aa
1 changed files with 0 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue