fix: /v2ex/tab/hot returned undefined (#6461)

This commit is contained in:
Laam Pui 2020-12-19 00:54:42 +08:00 committed by GitHub
parent 3efdea942f
commit d3f9dafe31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ module.exports = async (ctx) => {
return `<p><div>#${no}: <i>${author}</i></div><div>${content}</div></p>`;
})
.join('');
const post = {
post = {
title: $('.header h1').text(),
link: pageUrl,
guid: pageUrl,