mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-29 16:07:42 +08:00
fix: BoF article URL (#4596)
This commit is contained in:
@@ -21,11 +21,13 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
|
||||
const items = response.data.data.articles.edges.map((item) => {
|
||||
const url = new URL(item.node.url);
|
||||
url.host = 'cn.businessoffashion.com';
|
||||
const single = {
|
||||
title: item.node.title,
|
||||
description: `${item.node.summary}<br>${item.node.content}`,
|
||||
pubDate: new Date(item.node.published.value).toUTCString(),
|
||||
link: item.node.url,
|
||||
link: url.href,
|
||||
author: item.node.authors[0].displayName,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user