fix(route/douban): remove parameter to avoid duplicate (#17251)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user