Pārlūkot izejas kodu

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 :-)
master
Saúl Ibarra Corretgé 4 gadus atpakaļ
vecāks
revīzija
911df4b18a
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5
    1
      react/features/base/participants/functions.js

+ 5
- 1
react/features/base/participants/functions.js Parādīt failu

34
     },
34
     },
35
     (participant, store) => {
35
     (participant, store) => {
36
         if (participant && participant.email) {
36
         if (participant && participant.email) {
37
-            return getGravatarURL(participant.email, store.getState()['features/base/config'].gravatarBaseURL);
37
+            // TODO: remove once libravatar has deployed their new scaled up infra. -saghul
38
+            const gravatarBaseURL
39
+                = store.getState()['features/base/config'].gravatarBaseURL ?? 'https://www.gravatar.com/avatar/';
40
+
41
+            return getGravatarURL(participant.email, gravatarBaseURL);
38
         }
42
         }
39
 
43
 
40
         return null;
44
         return null;

Notiek ielāde…
Atcelt
Saglabāt