From 673aad4540320413c654de55021762b91230e96b Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Wed, 7 Feb 2024 18:32:40 +0800 Subject: [PATCH] fix(route/thepaper): Avoid destructuring string when parsing tags (#14383) * Update utils.js * Update lib/v2/thepaper/utils.js Co-authored-by: Tony --------- --- 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 0e385db175b371..aa9d48c7620756 100644 --- a/lib/v2/thepaper/utils.js +++ b/lib/v2/thepaper/utils.js @@ -58,7 +58,7 @@ module.exports = { title: contentDetail.name || contentDetail.shareName, link: itemUrl, description, - category: [...(contentDetail.tagList?.map((t) => t.tag) ?? []), ...(contentDetail?.nodeInfo?.name ?? [])], + category: [...(contentDetail.tagList?.map((t) => t.tag) ?? []), contentDetail?.nodeInfo?.name ?? []], pubDate: parseDate(item.pubTimeLong || contentDetail.pubTime || contentDetail.publishTime), author: contentDetail.author || '', media: {