summaryrefslogtreecommitdiffstats
path: root/lib/plugins/gravatar
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-05-04 15:59:50 +0000
committerGo MAEDA <maeda@farend.jp>2019-05-04 15:59:50 +0000
commitbf0246ce83b3fe1dcc986bc4fc6acbc513330edd (patch)
treec31ffd9c10b608d8b48c4900bf1afa4c958a3678 /lib/plugins/gravatar
parent400e1ca2ffffa9f2d4383e30c8c2c0e0b02c964b (diff)
downloadredmine-bf0246ce83b3fe1dcc986bc4fc6acbc513330edd.tar.gz
redmine-bf0246ce83b3fe1dcc986bc4fc6acbc513330edd.zip
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
Diffstat (limited to 'lib/plugins/gravatar')
-rw-r--r--lib/plugins/gravatar/lib/gravatar.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/gravatar/lib/gravatar.rb b/lib/plugins/gravatar/lib/gravatar.rb
index 7c2fca6d3..aa8500ba9 100644
--- a/lib/plugins/gravatar/lib/gravatar.rb
+++ b/lib/plugins/gravatar/lib/gravatar.rb
@@ -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.