diff options
author | Arnaud ABELARD <arnaud.abelard@univ-nantes.fr> | 2014-04-13 01:10:45 +0400 |
---|---|---|
committer | Arnaud ABELARD <arnaud.abelard@univ-nantes.fr> | 2014-04-13 01:10:45 +0400 |
commit | 5d7bdf76426488f3229bb1f97aaa54a676cbf166 (patch) | |
tree | 642392bf8acd9a10c34cf48a7d9166d4b9d1659f /app/helpers | |
parent | 0f31acd0ec9b8a6ccfe9c6b0038736ad724814c0 (diff) |
allow using the user's email address as a http parameter in gravatar urls for custom avatar systems. For example:
plain_url: "http://avatar.company.com/avatar/?mail=%{email}&size=%{size}"
add mention of the different placeholders possible for gravatar urls, mentionning the new %{email}
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index faecde299c1..5f07cdf448c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -75,7 +75,7 @@ module ApplicationHelper else gravatar_url = request.ssl? || gitlab_config.https ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url user_email.strip! - sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size + sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size, email: user_email end end |