mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-16 13:08:03 +00:00
Do not use 404 in case no default is set - we need to redir to the default Gravatar
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user