Do not use 404 in case no default is set - we need to redir to the default Gravatar

This commit is contained in:
Oliver Falk
2021-09-16 10:50:29 +02:00
parent 70ffb10d51
commit bc3ce39a19

View File

@@ -196,8 +196,6 @@ class AvatarImageView(TemplateView):
# Ensure we do not convert None to string 'None'
if default:
url += "&default=%s" % default
else:
url += "&default=404"
return HttpResponseRedirect(url)
# Return the default URL, as specified, or 404 Not Found, if default=404