fix(route): duplicate posts from Sakurazaka46 news & blog (#10159)

This commit is contained in:
Ethan Shen
2022-07-07 13:44:28 +09:00
committed by GitHub
parent e253aa27df
commit 17402bb250
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = async (ctx) => {
return {
title: item.text(),
author: item.find('.name').text(),
link: `${rootUrl}${item.attr('href')}`,
link: `${rootUrl}${item.attr('href').split('?')[0]}`,
};
});
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = async (ctx) => {
return {
title: item.find('.lead').text(),
link: `${rootUrl}${item.attr('href')}`,
link: `${rootUrl}${item.attr('href').split('?')[0]}`,
pubDate: parseDate(item.find('.date').text()),
};
});