From f5d7ac8c8bc9f1a69c1b7254df4c3c03daf02a58 Mon Sep 17 00:00:00 2001 From: Austin Lee Date: Sun, 28 May 2023 17:44:31 +0800 Subject: [PATCH] chore: add github url as default link return if user has no blog url --- src/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.js b/src/github.js index 927b15b..09196b3 100644 --- a/src/github.js +++ b/src/github.js @@ -52,7 +52,7 @@ module.exports = class extends Base { id: userInfo.login, name: userInfo.name || userInfo.login, email: userInfo.email, - url: userInfo.blog, + url: userInfo.blog || `https://github.com/${userInfo.login}`, avatar: userInfo.avatar_url, }; }