[BZ Fresh UI] Undefined email will now return default gravatar

This commit is contained in:
Sagi Dayan 2021-08-08 09:37:57 +03:00
parent f99af36f48
commit eae82f6c1b
Signed by: sagi
GPG key ID: FAB96BFC63B46458

View file

@ -129,7 +129,7 @@
async function getAvatarByEmail(email, fullName) {
if (userAvatars[email]) return userAvatars[email];
if (!email) return getGravatar(email);
if (!email) return getGravatar('just-a-fake-email-for-default@avatar.image.thing');
try {
const resp = await fetch("https://api.github.com/graphql", {
"method": "POST",