From 09b469322e5ebc001c27258a9ca75733b40d5d0e Mon Sep 17 00:00:00 2001 From: Luke Heath Date: Tue, 21 Mar 2023 09:35:40 -0500 Subject: [PATCH] Only use gravatar fallback if explicitly set to false (#10614) --- frontend/utilities/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/utilities/helpers.ts b/frontend/utilities/helpers.ts index b45cbe6215..fe969e823f 100644 --- a/frontend/utilities/helpers.ts +++ b/frontend/utilities/helpers.ts @@ -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());