Add avatar_server_url configuration option in order to support Libravatar (#9112).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18124 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-05-04 15:59:50 +00:00
parent 400e1ca2ff
commit bf0246ce83
8 changed files with 42 additions and 6 deletions

View File

@@ -63,7 +63,7 @@ module GravatarHelper
# Returns the base Gravatar URL for the given email hash
def gravatar_api_url(hash)
'https://www.gravatar.com/avatar/' + hash.to_s
+"#{Redmine::Configuration['avatar_server_url']}/avatar/#{hash}"
end
# Return the gravatar URL for the given email address.