From 4e801bc73ab96eec8cfc8b071568844851fbf895 Mon Sep 17 00:00:00 2001 From: Ian Wilkinson Date: Thu, 6 Dec 2018 18:13:49 +0000 Subject: [PATCH] Email was not being trimed/lowercased when calling gravatar. --- src/git/models/commit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/models/commit.ts b/src/git/models/commit.ts index c952453..97f5ed9 100644 --- a/src/git/models/commit.ts +++ b/src/git/models/commit.ts @@ -186,7 +186,7 @@ export abstract class GitCommit { gravatar = Uri.parse( `https://www.gravatar.com/avatar/${ - this.email ? Strings.md5(this.email, 'hex') : '00000000000000000000000000000000' + this.email ? Strings.md5(this.email.trim().toLowerCase(), 'hex') : '00000000000000000000000000000000' }.jpg?s=${size}&d=${fallback}` ); gravatarCache.set(key, gravatar);