diff options
author | Sheogorath | 2019-03-17 23:47:30 +0100 |
---|---|---|
committer | Sheogorath | 2019-03-17 23:51:54 +0100 |
commit | a5133e0f9bec5506f2f10ba2260e892a07ec23ad (patch) | |
tree | ba87b722509d42f1a7b0d4bb09dfb233f614da8f /test | |
parent | 5e634aef87861a396ec6c79e6e2b126ac44af5d3 (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 'test')
-rw-r--r-- | test/letter-avatars.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/letter-avatars.js b/test/letter-avatars.js index c0e967ef..8cc32d8b 100644 --- a/test/letter-avatars.js +++ b/test/letter-avatars.js @@ -19,8 +19,8 @@ describe('generateAvatarURL() gravatar enabled', function () { }) it('should return correct urls', function () { - assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', true), 'https://www.gravatar.com/avatar/d41b5f3508cc3f31865566a47dd0336b?s=400') - assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', false), 'https://www.gravatar.com/avatar/d41b5f3508cc3f31865566a47dd0336b?s=96') + assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', true), 'https://cdn.libravatar.org/avatar/d41b5f3508cc3f31865566a47dd0336b?s=400') + assert.strictEqual(avatars.generateAvatarURL('Daan Sprenkels', 'hello@dsprenkels.com', false), 'https://cdn.libravatar.org/avatar/d41b5f3508cc3f31865566a47dd0336b?s=96') }) it('should return correct urls for names with spaces', function () { |