From 9eaaad4775927b109e5134393e295301852db8d5 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 4 Dec 2019 00:45:20 +0100 Subject: [PATCH] Fall back to author names in gravatars (#482) --- isso/views/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/views/comments.py b/isso/views/comments.py index 676ad0e..8db7477 100644 --- a/isso/views/comments.py +++ b/isso/views/comments.py @@ -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')