summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-12-19 17:04:39 +0100
committerSandro Santilli <strk@kbt.io>2016-12-19 17:05:30 +0100
commit608a60fb948187417bd487b822c26e74cf8b9bbc (patch)
tree4c38a4e81c4477cfa83127e4214123687a25779b /modules/setting
parent578a8e258e4a36ed439ad0fd2c1ea45a0ec21f7c (diff)
downloadgitea-608a60fb948187417bd487b822c26e74cf8b9bbc.tar.gz
gitea-608a60fb948187417bd487b822c26e74cf8b9bbc.zip
Add support for using "libravatar" as the GravatarSource
Just to make it easier for administrator to configure libre avatar, as it is done for "duoshuo" and "gravatar"
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index ece149a0ce..d78b22c484 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -544,6 +544,8 @@ please consider changing to GITEA_CUSTOM`)
GravatarSource = "http://gravatar.duoshuo.com/avatar/"
case "gravatar":
GravatarSource = "https://secure.gravatar.com/avatar/"
+ case "libravatar":
+ GravatarSource = "https://seccdn.libravatar.org/avatar/"
default:
GravatarSource = source
}