mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): 华尔街见闻移除广告 (#10913)
This commit is contained in:
@@ -28,12 +28,14 @@ module.exports = async (ctx) => {
|
||||
url: apiUrl,
|
||||
});
|
||||
|
||||
let items = response.data.data.items.map((item) => ({
|
||||
type: item.resource_type,
|
||||
guid: item.resource.id,
|
||||
link: item.resource.uri,
|
||||
pubDate: parseDate(item.resource.display_time * 1000),
|
||||
}));
|
||||
let items = response.data.data.items
|
||||
.filter((item) => item.resource_type !== 'ad')
|
||||
.map((item) => ({
|
||||
type: item.resource_type,
|
||||
guid: item.resource.id,
|
||||
link: item.resource.uri,
|
||||
pubDate: parseDate(item.resource.display_time * 1000),
|
||||
}));
|
||||
|
||||
items = await Promise.all(
|
||||
items.map((item) =>
|
||||
|
||||
Reference in New Issue
Block a user