diff options
author | Sandro Santilli <strk@kbt.io> | 2016-12-21 09:10:15 +0100 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-12-21 03:10:15 -0500 |
commit | 3925166d31af0922d319b63e85586a2e22d2469c (patch) | |
tree | e2d6c3db526df1b43691bbe9a227a3bf62959d36 | |
parent | 7358e46815d6c622377b957329269e4a967913f3 (diff) |
Add support for using "libravatar" as the GravatarSource (#3969)
Just to make it easier for administrator to configure libre avatar,
as it is done for "duoshuo" and "gravatar"
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 6a149e81..581d4137 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -522,6 +522,8 @@ func NewContext() { 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 } |