mirror of
https://github.com/sagidayan/greasemonkey-scripts.git
synced 2024-11-24 18:15:26 +00:00
[BZ Fresh UI] Undefined email will now return default gravatar
This commit is contained in:
parent
f99af36f48
commit
eae82f6c1b
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@
|
||||||
|
|
||||||
async function getAvatarByEmail(email, fullName) {
|
async function getAvatarByEmail(email, fullName) {
|
||||||
if (userAvatars[email]) return userAvatars[email];
|
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 {
|
try {
|
||||||
const resp = await fetch("https://api.github.com/graphql", {
|
const resp = await fetch("https://api.github.com/graphql", {
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
|
|
Loading…
Reference in a new issue