Only use gravatar fallback if explicitly set to false (#10614)

This commit is contained in:
Luke Heath 2023-03-21 09:35:40 -05:00 committed by GitHub
parent c82026e930
commit 09b469322e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ const ADMIN_ATTRS = ["email", "name", "password", "password_confirmation"];
export const addGravatarUrlToResource = (resource: any): any => {
const { email } = resource;
const gravatarAvailable =
localStorage.getItem("gravatar_available") === "true";
localStorage.getItem("gravatar_available") !== "false"; // Only fallback if explicitly set to "false"
const emailHash = md5(email.toLowerCase());