From c0c27a9ed382994ddec8c8b897716e418f6c80d8 Mon Sep 17 00:00:00 2001 From: hoilc Date: Fri, 29 Nov 2019 14:14:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E5=9B=BD=E5=AE=B6=E5=9C=B0=E7=90=86-?= =?UTF-8?q?=E6=AF=8F=E6=97=A5=E4=B8=80=E5=9B=BE=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=20(#3504)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/natgeo/dailyphoto.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/routes/natgeo/dailyphoto.js b/lib/routes/natgeo/dailyphoto.js index c02818e824a57a..91b4b571f96d08 100644 --- a/lib/routes/natgeo/dailyphoto.js +++ b/lib/routes/natgeo/dailyphoto.js @@ -11,10 +11,10 @@ module.exports = async (ctx) => { const out = items.slice(0, 10).map((item) => { const info = { - title: item.altText, - author: item.credit, - link: item['full-path-url'], - description: `` + item.caption, + title: item.image.title, + author: item.image.credit.replace('Photograph by ', ''), + link: item.pageUrl, + description: `` + item.image.caption, }; return info; });