From f0b1d1d59bf3f46da24bc0e4030927b546c9e8ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=99=8E=E6=95=85=E6=B4=9E?= <55782476+TigerCubDen@users.noreply.github.com> Date: Tue, 2 Mar 2021 12:47:52 +0800 Subject: [PATCH] fix(route): furaffinity user (#7009) --- docs/en/social-media.md | 6 +++--- docs/social-media.md | 8 ++++---- lib/routes/furaffinity/user.js | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/en/social-media.md b/docs/en/social-media.md index 28a67a676d..473a46f239 100644 --- a/docs/en/social-media.md +++ b/docs/en/social-media.md @@ -38,7 +38,7 @@ pageClass: routes ### Home - + Type @@ -50,7 +50,7 @@ Type ### Browse - + ### Website Status @@ -62,7 +62,7 @@ Type ### Search - + ### User's Watching List diff --git a/docs/social-media.md b/docs/social-media.md index b7b883cc35..e9b6fc9dcc 100644 --- a/docs/social-media.md +++ b/docs/social-media.md @@ -330,7 +330,7 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性 ### 主页 - + 类型 type @@ -342,7 +342,7 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性 ### 浏览 - + ### 站点状态 @@ -350,7 +350,7 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性 ### 搜索 - + ### 用户主页简介 @@ -374,7 +374,7 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性 ### 用户的日记 - + ### 用户的创作画廊 diff --git a/lib/routes/furaffinity/user.js b/lib/routes/furaffinity/user.js index e1a5f0833e..decb4c8736 100644 --- a/lib/routes/furaffinity/user.js +++ b/lib/routes/furaffinity/user.js @@ -48,10 +48,10 @@ module.exports = async (ctx) => { const favorites_food = artist_information['Favorite Food']; const contact_information = data.contact_information; - let contact_result = 'null'; + let contact_result = 'none

'; // 对一个或多个用户联系方式进行遍历 - if (contact_information !== 'null') { + if (contact_information) { contact_result = ''; for (let i = 0; i < contact_information.length; i++) { for (const j in contact_information[i]) {