diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 573d49c4..f1b088c4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -626,6 +626,7 @@ module ApplicationHelper # +user+ can be a User or a string that will be scanned for an email address (eg. 'joe ') def avatar(user, options = { }) if Setting.gravatar_enabled? + options.merge!({:ssl => Setting.protocol == 'https'}) email = nil if user.respond_to?(:mail) email = user.mail