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`; };