Commit 32499e8276c936ddc0a3c951413b6f73cbdae00c
1 parent
12dbd0a4
Exists in
spb-stable
and in
2 other branches
allow using the user's email address as a http parameter in gravatar urls for cu…
…stom avatar systems. For example: plain_url: "http://avatar.company.com/avatar/?mail=%{email}&size=%{size}"
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -66,7 +66,7 @@ module ApplicationHelper | @@ -66,7 +66,7 @@ module ApplicationHelper | ||
66 | else | 66 | else |
67 | gravatar_url = request.ssl? || gitlab_config.https ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url | 67 | gravatar_url = request.ssl? || gitlab_config.https ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url |
68 | user_email.strip! | 68 | user_email.strip! |
69 | - sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size | 69 | + sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size, email: user_email |
70 | end | 70 | end |
71 | end | 71 | end |
72 | 72 | ||
@@ -221,4 +221,4 @@ module ApplicationHelper | @@ -221,4 +221,4 @@ module ApplicationHelper | ||
221 | def render_markup(file_name, file_content) | 221 | def render_markup(file_name, file_content) |
222 | GitHub::Markup.render(file_name, file_content).html_safe | 222 | GitHub::Markup.render(file_name, file_content).html_safe |
223 | end | 223 | end |
224 | -end | 224 | -end |
225 | +end | ||
225 | \ No newline at end of file | 226 | \ No newline at end of file |