Fall back to author names in gravatars (#482)
This commit is contained in:
parent
4944d595f6
commit
9eaaad4775
@ -815,7 +815,7 @@ class API(object):
|
|||||||
if not self.conf.getboolean('gravatar'):
|
if not self.conf.getboolean('gravatar'):
|
||||||
return item
|
return item
|
||||||
|
|
||||||
email = item['email'] or ""
|
email = item['email'] or item['author'] or ''
|
||||||
email_md5_hash = md5(email)
|
email_md5_hash = md5(email)
|
||||||
|
|
||||||
gravatar_url = self.conf.get('gravatar-url')
|
gravatar_url = self.conf.get('gravatar-url')
|
||||||
|
Loading…
Reference in New Issue
Block a user