Skip to content

Commit

Permalink
feat(route): refine category list for thepaper. (DIYgod#13178)
Browse files Browse the repository at this point in the history
* feat(route): refine category for thepaper.

* Update utils.js
  • Loading branch information
dzx-dzx authored Sep 1, 2023
1 parent 92bc237 commit f641a2a
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 @@ -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: {
Expand Down

0 comments on commit f641a2a

Please sign in to comment.