replaced gravatar default (#4158)

This commit is contained in:
Peer Richelsen authored and GitHub committed 2022-09-05 10:23:39 +00:00
1 parent 8a2005ccf1
commit ae5030198c
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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`;
};
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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`;
};