Minor gravatar issue

0 views
Skip to first unread message

Lark...@gmail.com

unread,
Mar 16, 2008, 8:53:52 AM3/16/08
to GitNub
Just grabbed 0.7.0 - very nice, but one minor problem: it's not
picking up my gravatar. No time to dig into the source at the moment,
alas - but when I've had this elsewhere it's usually been a matter of
not forcing email addresses to lower case before you get the hash to
ship off.

Pieter de Bie

unread,
Mar 16, 2008, 9:08:03 AM3/16/08
to git...@googlegroups.com, Pieter de Bie
---
CommitsController.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/CommitsController.rb b/CommitsController.rb
index 0fa7dd6..0cd7540 100644
--- a/CommitsController.rb
+++ b/CommitsController.rb
@@ -22,7 +22,7 @@ class CommitsController < OSX::NSObject
@offset = 50
@active_commit = nil
@icons = Hash.new do |hash, email|
- gravatar = NSURL.URLWithString("http://www.gravatar.com/avatar.php?gravatar_id=#{MD5.hexdigest(email)}&size=36")
+ gravatar = NSURL.URLWithString("http://www.gravatar.com/avatar.php?gravatar_id=#{MD5.hexdigest(email.downcase)}&size=36")
hash[email] = NSImage.alloc.initWithContentsOfURL(gravatar)
end

--
1.5.4.4.594.g91c25


Reply all
Reply to author
Forward
0 new messages