fix(avatar) revert back to defaulting to Gravatar

While the base URL remains configurable, this patch reverts back to using
Gravatar.

We noticed high latency with libravatar and contacted them. They are in the
process of migrarting to a better infrastructure (it's a single personal server
at the moment) so we'll re-evaluate once that has happened.

As for why not leave the default and change it on the meet.jit.si installation,
we don't want to kill their server :-)
This commit is contained in:
Saúl Ibarra Corretgé 2020-11-24 11:19:08 +01:00 committed by Saúl Ibarra Corretgé
parent 1041cd8055
commit 911df4b18a
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ const AVATAR_CHECKER_FUNCTIONS = [
}, },
(participant, store) => { (participant, store) => {
if (participant && participant.email) { if (participant && participant.email) {
return getGravatarURL(participant.email, store.getState()['features/base/config'].gravatarBaseURL); // TODO: remove once libravatar has deployed their new scaled up infra. -saghul
const gravatarBaseURL
= store.getState()['features/base/config'].gravatarBaseURL ?? 'https://www.gravatar.com/avatar/';
return getGravatarURL(participant.email, gravatarBaseURL);
} }
return null; return null;