From d3f9dafe3137eff1b533047e2764fbf349344c65 Mon Sep 17 00:00:00 2001 From: Laam Pui Date: Sat, 19 Dec 2020 00:54:42 +0800 Subject: [PATCH] fix: /v2ex/tab/hot returned undefined (#6461) --- lib/routes/v2ex/tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/v2ex/tab.js b/lib/routes/v2ex/tab.js index 585dac243a..140eca922d 100644 --- a/lib/routes/v2ex/tab.js +++ b/lib/routes/v2ex/tab.js @@ -39,7 +39,7 @@ module.exports = async (ctx) => { return `

#${no}: ${author}
${content}

`; }) .join(''); - const post = { + post = { title: $('.header h1').text(), link: pageUrl, guid: pageUrl,