<p>In app/helpers/user_helper.rb:</p>
<pre style='color:#555'>> @@ -29,4 +45,19 @@ def openid_button(name, url)
> :title => t("user.login.openid_providers.#{name}.title")
> )
> end
> +
> + # Gravatar support
> +
> + # See http://en.gravatar.com/site/implement/images/ for details.
> + def user_gravatar_url(user, options = {})
> + options = {:size => 80}.merge! options
</pre>
<p>Thinking about this, we might want to keep the size option because what you haven't done, but need to do, is to fix <code>app/views/user/api_read.builder</code> to generate a gravatar URL when appropriate, and that should probably be at a larger size.</p>
<p>For our own images we return them at original size, but I don't think there's any way to do that with gravatar...</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
—<br>
Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/131/files#r1855603'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/GL_BcdxKe4HF2aBEXoOA7fYBh8FdbvAHDCh-W2l55yB3SBAC6QX0UoPk5lZh4lCh.gif' height='1' width='1'>