From ae5030198c0d6156a64bf31811c6d03b50d1c774 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Mon, 5 Sep 2022 12:23:39 +0200 Subject: [PATCH] replaced gravatar default (#4158) --- apps/web/components/ui/AvatarSSR.tsx | 2 +- apps/web/lib/profile.ts | 2 +- packages/lib/defaultAvatarImage.ts | 2 +- packages/lib/profile.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/components/ui/AvatarSSR.tsx b/apps/web/components/ui/AvatarSSR.tsx index a019d6d764..c982f9138b 100644 --- a/apps/web/components/ui/AvatarSSR.tsx +++ b/apps/web/components/ui/AvatarSSR.tsx @@ -20,7 +20,7 @@ export type AvatarProps = ( // defaultAvatarSrc from profile.tsx can't be used as it imports crypto function defaultAvatarSrc(md5: string) { - return `https://www.gravatar.com/avatar/${md5}?s=160&d=identicon&r=PG`; + return `https://www.gravatar.com/avatar/${md5}?s=160&d=mp&r=PG`; } // An SSR Supported version of Avatar component. diff --git a/apps/web/lib/profile.ts b/apps/web/lib/profile.ts index 2ef123d980..de6f4e280f 100644 --- a/apps/web/lib/profile.ts +++ b/apps/web/lib/profile.ts @@ -7,5 +7,5 @@ export const defaultAvatarSrc = function ({ email, md5 }: { md5?: string; email? md5 = crypto.createHash("md5").update(email).digest("hex"); } - return `https://www.gravatar.com/avatar/${md5}?s=160&d=identicon&r=PG`; + return `https://www.gravatar.com/avatar/${md5}?s=160&d=mp&r=PG`; }; diff --git a/packages/lib/defaultAvatarImage.ts b/packages/lib/defaultAvatarImage.ts index 94ca0e75b9..316c2d5b1e 100644 --- a/packages/lib/defaultAvatarImage.ts +++ b/packages/lib/defaultAvatarImage.ts @@ -7,7 +7,7 @@ export const defaultAvatarSrc = function ({ email, md5 }: { md5?: string; email? md5 = crypto.createHash("md5").update(email).digest("hex"); } - return `https://www.gravatar.com/avatar/${md5}?s=160&d=identicon&r=PG`; + return `https://www.gravatar.com/avatar/${md5}?s=160&d=mp&r=PG`; }; export function getPlaceholderAvatar(avatar: string | null | undefined, name: string | null) { diff --git a/packages/lib/profile.ts b/packages/lib/profile.ts index 2ef123d980..de6f4e280f 100644 --- a/packages/lib/profile.ts +++ b/packages/lib/profile.ts @@ -7,5 +7,5 @@ export const defaultAvatarSrc = function ({ email, md5 }: { md5?: string; email? md5 = crypto.createHash("md5").update(email).digest("hex"); } - return `https://www.gravatar.com/avatar/${md5}?s=160&d=identicon&r=PG`; + return `https://www.gravatar.com/avatar/${md5}?s=160&d=mp&r=PG`; };