mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
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"
This commit is contained in:
parent
7358e46815
commit
3925166d31
@ -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…
x
Reference in New Issue
Block a user