Commit 1a92ae9fcb1e25579f8cd65b6c9683d193a97455
1 parent
26befdc7
Exists in
master
and in
4 other branches
Override gravatar url to use SSL if gitlab has the SSL flag set to true.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -37,7 +37,7 @@ module ApplicationHelper |
37 | 37 | if !Gitlab.config.gravatar.enabled || user_email.blank? |
38 | 38 | 'no_avatar.png' |
39 | 39 | else |
40 | - gravatar_url = request.ssl? ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url | |
40 | + gravatar_url = request.ssl? || Gitlab.config.gitlab.https ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url | |
41 | 41 | user_email.strip! |
42 | 42 | sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size |
43 | 43 | end | ... | ... |