fix(route): yoasobi-music redefine guid (#10958)
same post being consided as new one because of the random generated emoji in `guid`.
This commit is contained in:
@@ -30,6 +30,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
return {
|
||||
id: isBio ? null : item.id,
|
||||
guid: isBio ? `bio:${item.url}` : `news:${item.title}${item.date}`,
|
||||
title: isBio ? `${randomEmoji} ${item.url}` : item.title,
|
||||
category: item.category ?? 'Achievement',
|
||||
date: isBio ? item.url : item.date,
|
||||
@@ -58,7 +59,7 @@ module.exports = async (ctx) => {
|
||||
// the article publish time
|
||||
pubDate: parseDate(i.date),
|
||||
// guid
|
||||
guid: i.title + i.date,
|
||||
guid: i.guid,
|
||||
// the article link
|
||||
link: i.id ? `${officialUrl}/${i.id}` : officialUrl,
|
||||
category: i.category,
|
||||
|
||||
Reference in New Issue
Block a user