Skip to content

Commit

Permalink
Merge pull request #37 from stopspazzing/master
Browse files Browse the repository at this point in the history
Fixed incorrect gravatar url
  • Loading branch information
caseyscarborough authored Jun 18, 2021
2 parents 21c8bf5 + d2b64ea commit 0d7a118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github-activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var GitHubActivity = (function() {
}
if (i < 2) {
d.shaLink = methods.renderGitHubLink(data.repo.name + '/commit/' + d.sha, d.sha.substring(0, 6), 'gha-sha');
d.committerGravatar = Mustache.render('<img class="gha-gravatar-commit" src="https://gravatar.com/avatar/{{hash}}?s=30&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="16" />', { hash: md5(d.author.email) });
d.committerGravatar = Mustache.render('<img class="gha-gravatar-commit" src="https://gravatar.com/avatar/{{hash}}" width="16" />', { hash: md5(d.author.email.trim().toLowerCase()) });
} else {
// Delete the rest of the commits after the first 2, and then break out of the each loop.
p.commits.splice(2, p.size);
Expand Down

0 comments on commit 0d7a118

Please sign in to comment.