gravatar_patch.diff

Fabian Buch, 2009-03-08 12:35

Download (734 Bytes)

View differences:

vendor/plugins/gravatar/lib/gravatar.rb (working copy)
52 52
      email_hash = Digest::MD5.hexdigest(email)
53 53
      options = DEFAULT_OPTIONS.merge(options)
54 54
      options[:default] = CGI::escape(options[:default]) unless options[:default].nil?
55
      returning "http://www.gravatar.com/avatar.php?gravatar_id=#{email_hash}" do |url| 
55
      returning "http://www.gravatar.com/avatar/#{email_hash}?" do |url| do |url| 
56 56
        [:rating, :size, :default].each do |opt|
57 57
          unless options[opt].nil?
58 58
            value = h(options[opt])