Scheduling infrastructure for absolutely everyone.
replaced gravatar default (#4158)
Peer Richelsenae5030198c0d
diff --git a/apps/web/components/ui/AvatarSSR.tsx b/apps/web/components/ui/AvatarSSR.tsxindex a019d6d7649..c982f9138bb 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 cryptofunction 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.tsindex 2ef123d9801..de6f4e280fa 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.tsindex 94ca0e75b90..316c2d5b1e6 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.tsindex 2ef123d9801..de6f4e280fa 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`;};