Browse Source

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"
Sandro Santilli 8 years ago
parent
commit
3925166d31
1 changed files with 2 additions and 0 deletions
  1. 2 0
      modules/setting/setting.go

+ 2 - 0
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
 	}