feat(route): refine category list for thepaper. (#13178)

* feat(route): refine category for thepaper.

* Update utils.js
This commit is contained in:
Andvari 2023-09-01 22:38:42 +08:00 committed by GitHub
parent 92bc237f63
commit f641a2ad7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: {