fix(route): remove douban status url tracker (#8562)
This commit is contained in:
parent
9e6cf26a6e
commit
ee270e75c6
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue