summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSheogorath2019-03-17 23:47:30 +0100
committerSheogorath2019-03-17 23:51:54 +0100
commita5133e0f9bec5506f2f10ba2260e892a07ec23ad (patch)
treeba87b722509d42f1a7b0d4bb09dfb233f614da8f /lib
parent5e634aef87861a396ec6c79e6e2b126ac44af5d3 (diff)
Use libravatar as drop-in replacement for gravatar
Since libravatar got a default fallback to Gravatar and in generell allows federated image hosting for avatars this shouldn't break any existing implementations. The federation functionality is not added yet. This would require to use the libravatar library. Details: https://wiki.libravatar.org/api/ Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/letter-avatars.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/letter-avatars.js b/lib/letter-avatars.js
index a5dd8207..935cc1bb 100644
--- a/lib/letter-avatars.js
+++ b/lib/letter-avatars.js
@@ -37,7 +37,7 @@ exports.generateAvatarURL = function (name, email = '', big = true) {
let hexDigest = hash.digest('hex')
if (email !== '' && config.allowGravatar) {
- photo = 'https://www.gravatar.com/avatar/' + hexDigest;
+ photo = 'https://cdn.libravatar.org/avatar/' + hexDigest;
if (big) {
photo += '?s=400'
} else {