We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 72894d1 + 187401a commit 007f252Copy full SHA for 007f252
1 file changed
lib/letter-avatars.js
@@ -27,6 +27,10 @@ exports.generateAvatar = function (name) {
27
28
exports.generateAvatarURL = function (name, email = '', big = true) {
29
let photo
30
+ if (typeof email !== 'string') {
31
+ email = '' + name + '@example.com'
32
+ }
33
+
34
if (email !== '' && config.allowGravatar) {
35
photo = 'https://www.gravatar.com/avatar/' + md5(email.toLowerCase())
36
if (big) {
0 commit comments