fix: 重新支持infoq获取文章正文 (#12039)

* 重新支持获取文章正文

* Update lib/v2/infoq/utils.js

* Update lib/v2/infoq/utils.js

* style: auto format

---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
lin1005q
2023-03-06 22:01:47 +08:00
committed by GitHub
parent 94986690f0
commit 1878fca9e5

View File

@@ -21,10 +21,11 @@ const ProcessFeed = async (list, cache) => {
const data = resp.data.data;
const author = data.author ? data.author.map((p) => p.nickname).join(',') : data.no_author;
const category = e.topic.map((t) => t.name).concat(e.label.map((l) => l.name));
const content = data.content_url ? (await got(data.content_url)).body : data.content;
return {
title: data.article_title,
description: parseContent(data.content),
description: parseContent(content),
pubDate: parseDate(e.publish_time, 'x'),
category,
author,