Skip to content

Commit

Permalink
Update lib/v2/thepaper/utils.js
Browse files Browse the repository at this point in the history
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
  • Loading branch information
dzx-dzx and TonyRL authored Feb 7, 2024
1 parent dc84000 commit 7b10301
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: [].concat(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 7b10301

Please sign in to comment.