diff options
-rw-r--r-- | lib/letter-avatars.js | 2 | ||||
-rw-r--r-- | public/views/index/body.ejs | 12 | ||||
-rw-r--r-- | test/letter-avatars.js | 4 |
3 files changed, 9 insertions, 9 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 { diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index c8e86b94..db22f2e3 100644 --- a/public/views/index/body.ejs +++ b/public/views/index/body.ejs @@ -135,20 +135,20 @@ <option value="ca">Català</option> <option value="el">Ελληνικά</option> <option value="pt">Português</option> - <option value="it">italiano</option> + <option value="it">Italiano</option> <option value="tr">Türkçe</option> <option value="ru">Русский</option> <option value="nl">Nederlands</option> - <option value="hr">hrvatski jezik</option> - <option value="pl">język polski</option> + <option value="hr">Hrvatski</option> + <option value="pl">Polski</option> <option value="uk">Українська</option> <option value="hi">हिन्दी</option> - <option value="sv">svenska</option> + <option value="sv">Svenska</option> <option value="eo">Esperanto</option> - <option value="da">dansk</option> + <option value="da">Dansk</option> <option value="ko">한국어</option> <option value="id">Bahasa Indonesia</option> - <option value="sr">српски</option> + <option value="sr">Cрпски</option> </select> <p> <%- __('Powered by %s', '<a href="https://codimd.org">CodiMD</a>') %> | <a href="<%- serverURL %>/s/release-notes" target="_blank" rel="noopener"><%= __('Releases') %></a>| <a href="<%- sourceURL %>" target="_blank" rel="noopener"><%= __('Source Code') %></a><% if(privacyStatement) { %> | <a href="<%- serverURL %>/s/privacy" target="_blank" rel="noopener"><%= __('Privacy') %></a><% } %><% if(termsOfUse) { %> | <a href="<%- serverURL %>/s/terms-of-use" target="_blank" rel="noopener"><%= __('Terms of Use') %></a><% } %> 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 () { |