From 0d404dc5592852d4a8b8f4a616781681a617396d Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Fri, 16 Nov 2018 10:51:08 +0100 Subject: [PATCH] Return nobody instead of misteryman - as pointed out in issue #18 (fixed) --- ivatar/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ivatar/views.py b/ivatar/views.py index b8ffe1d..9b79880 100644 --- a/ivatar/views.py +++ b/ivatar/views.py @@ -127,10 +127,10 @@ class AvatarImageView(TemplateView): else: return HttpResponseRedirect(default) - static_img = path.join('static', 'img', 'mm', '%s%s' % (str(size), '.png')) + static_img = path.join('static', 'img', 'nobody', '%s%s' % (str(size), '.png')) if not path.isfile(static_img): # We trust this exists!!! - static_img = path.join('static', 'img', 'mm', '512.png') + static_img = path.join('static', 'img', 'nobody', '512.png') # We trust static/ is mapped to /static/ return HttpResponseRedirect('/' + static_img)