fix(route/douban): remove parameter to avoid duplicate (#17251)

This commit is contained in:
haowenwu
2024-10-23 05:37:28 +08:00
committed by GitHub
parent 18deadc771
commit 39d83bc28c
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ async function handler(ctx) {
let link;
let title;
if (type === 'status') {
link = item.target.status.sharing_url;
link = item.target.status.sharing_url.split('&')[0];
author = item.target.status.author.name;
title = author + '的广播';
date = item.target.status.create_time;
@@ -67,7 +67,7 @@ async function handler(ctx) {
}
}
} else if (type === 'topic') {
link = item.target.group.sharing_url;
link = item.target.sharing_url;
author = item.target.status.author.name;
title = item.target.title;
date = item.target.create_time;
+4
View File
@@ -95,6 +95,10 @@ function tryFixStatus(status) {
}
}
if (status.sharing_url) {
status.sharing_url = status.sharing_url.split('&')[0];
}
if (!result.isFixSuccess) {
status.sharing_url = 'https://www.douban.com?rsshub_failed=' + now.getTime().toString();
if (!status.create_time) {