]> source.dussan.org Git - gitea.git/commitdiff
Add support for using "libravatar" as the GravatarSource 412/head
authorSandro Santilli <strk@kbt.io>
Mon, 19 Dec 2016 16:04:39 +0000 (17:04 +0100)
committerSandro Santilli <strk@kbt.io>
Mon, 19 Dec 2016 16:05:30 +0000 (17:05 +0100)
Just to make it easier for administrator to configure libre avatar,
as it is done for "duoshuo" and "gravatar"

modules/setting/setting.go

index ece149a0ce8d5daf6d9fd285c333016f20acdd36..d78b22c48489705eb89e6b047610c0cc29f02b6a 100644 (file)
@@ -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
        }