From 8932317f08b2cc7914d11d87cf402152c9b1d926 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 5 Jun 2018 10:14:24 +1000 Subject: [PATCH] Allow sizes up to 512 when requesting libravatars, since that's what the spec says actually and I just misread it I guess? --- users/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/views.py b/users/views.py index ca9bc22..83ed965 100644 --- a/users/views.py +++ b/users/views.py @@ -19,8 +19,8 @@ def libravatar(request, hash): size = int(size) except ValueError: return utils.bad_req('size parameter must be an integer') - if not 1 <= size <= 128: - return utils.bad_req('size parameter must be between 1 and 128') + if not 1 <= size <= 512: + return utils.bad_req('size parameter must be between 1 and 512') if len(hash) == 32: where = {'email_md5': hash}