mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): Foresight News column (#14322)
This commit is contained in:
@@ -47,7 +47,7 @@ const processItems = async (apiUrl, limit, ...searchParams) => {
|
||||
let items = JSON.parse(String(zlib.inflateSync(Buffer.from(response.data?.list ?? response.data, 'base64'))));
|
||||
|
||||
items = (items?.list ?? items).slice(0, limit).map((item) => {
|
||||
const sourceType = item.source_type ?? (item.source_link ? 'news' : item.event_type ? 'event' : constants.defaultType);
|
||||
const sourceType = item.source_type ?? (item.source_link ? (item.column?.title ? 'article' : 'news') : item.event_type ? 'event' : constants.defaultType);
|
||||
|
||||
item = item.source_type ? item[item.source_type] : item;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user