fix(route): remove douban status url tracker (#8562)

This commit is contained in:
AgFlore 2021-11-27 09:11:57 +00:00 committed by GitHub
parent 9e6cf26a6e
commit ee270e75c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -51,6 +51,11 @@ function tryFixStatus(status) {
}
}
// 接口提供的URL最后有分享追踪器要删去否则路由无法工作
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) {

View File

@ -28,7 +28,7 @@ module.exports = async (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;