fix: route pixiv/search author meta (#2573)

This commit is contained in:
刻诺
2019-07-07 20:37:39 +08:00
committed by DIYgod
parent 164958d0dc
commit 3dec771ede
+1 -2
View File
@@ -18,7 +18,6 @@ module.exports = async (ctx) => {
}
const illusts = response.data.illusts;
const username = illusts[0].user.name;
ctx.state.data = {
title: `${keyword} 的 pixiv ${order === 'popular' ? '热门' : ''}内容`,
@@ -34,7 +33,7 @@ module.exports = async (ctx) => {
}
return {
title: illust.title,
author: username,
author: illust.user.name,
pubDate: new Date(illust.create_date).toUTCString(),
description: `<p>画师:${illust.user.name} - 阅览数:${illust.total_view} - 收藏数:${illust.total_bookmarks}</p>${images.join('')}`,
link: `https://www.pixiv.net/member_illust.php?mode=medium&illust_id=${illust.id}`,