From f641a2ad7c8f5edc1cd4e6f3a96a8c507473a9d1 Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Fri, 1 Sep 2023 22:38:42 +0800 Subject: [PATCH] feat(route): refine category list for thepaper. (#13178) * feat(route): refine category for thepaper. * Update utils.js --- lib/v2/thepaper/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/thepaper/utils.js b/lib/v2/thepaper/utils.js index 654ed586f..b71b16bf5 100644 --- a/lib/v2/thepaper/utils.js +++ b/lib/v2/thepaper/utils.js @@ -52,7 +52,7 @@ module.exports = { title: contentDetail.name || contentDetail.shareName, link: itemUrl, description, - category: contentDetail.tagList?.map((t) => t.tag) ?? [], + category: (contentDetail.tagList?.map((t) => t.tag) ?? []).concat(contentDetail?.nodeInfo?.name ?? []), pubDate: parseDate(item.pubTimeLong || contentDetail.pubTime || contentDetail.publishTime), author: contentDetail.author || '', media: {