Skip to content

Commit

Permalink
fix(route/thepaper): Avoid destructuring string when parsing tags (#1…
Browse files Browse the repository at this point in the history
…4383)

* Update utils.js

* Update lib/v2/thepaper/utils.js

Co-authored-by: Tony <[email protected]>

---------
  • Loading branch information
dzx-dzx authored Feb 7, 2024
1 parent d9f3067 commit 673aad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v2/thepaper/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 673aad4

Please sign in to comment.