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:
ri1ken
2022-09-30 05:13:55 +08:00
committed by GitHub
parent b523c4dc31
commit 0d69e20751
+2 -1
View File
@@ -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,