Browse Source

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"
pull/3968/head
Sandro Santilli 8 years ago
parent
commit
e868bf003b
  1. 2
      modules/setting/setting.go

2
modules/setting/setting.go

@ -522,6 +522,8 @@ func NewContext() {
GravatarSource = "http://gravatar.duoshuo.com/avatar/" GravatarSource = "http://gravatar.duoshuo.com/avatar/"
case "gravatar": case "gravatar":
GravatarSource = "https://secure.gravatar.com/avatar/" GravatarSource = "https://secure.gravatar.com/avatar/"
case "libravatar":
GravatarSource = "https://seccdn.libravatar.org/avatar/"
default: default:
GravatarSource = source GravatarSource = source
} }

Loading…
Cancel
Save