fix: route pixiv/search author meta (#2573)
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user