Fall back to author names in gravatars (#482)

This commit is contained in:
Marcin Kurczewski 2019-12-04 00:45:20 +01:00 committed by Jelmer Vernooij
parent 4944d595f6
commit 9eaaad4775

View File

@ -815,7 +815,7 @@ class API(object):
if not self.conf.getboolean('gravatar'):
return item
email = item['email'] or ""
email = item['email'] or item['author'] or ''
email_md5_hash = md5(email)
gravatar_url = self.conf.get('gravatar-url')