Use main email address for avatar

This commit is contained in:
Johannes Zellner
2018-01-22 16:09:25 +01:00
parent 14dcd71429
commit 8bcd807010
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ function initialize(callback) {
user.get(userId, function (error, result) {
if (error) return callback(error);
var md5 = crypto.createHash('md5').update(result.fallbackEmail || result.email).digest('hex');
var md5 = crypto.createHash('md5').update(result.email).digest('hex');
result.gravatar = 'https://www.gravatar.com/avatar/' + md5 + '.jpg?s=24&d=mm';
callback(null, result);