mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: natgeo null author (#3548)
This commit is contained in:
@@ -12,7 +12,7 @@ module.exports = async (ctx) => {
|
||||
const out = items.slice(0, 10).map((item) => {
|
||||
const info = {
|
||||
title: item.image.title,
|
||||
author: item.image.credit.replace('Photograph by ', ''),
|
||||
author: item.image.credit && item.image.credit.replace('Photograph by ', ''),
|
||||
link: item.pageUrl,
|
||||
description: `<img src="${item.image.uri}">` + item.image.caption,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user