From aa72a2c78c8eb6302ad90412d55d1fb7feae2db3 Mon Sep 17 00:00:00 2001 From: AgFlore Date: Tue, 11 May 2021 05:45:18 +0800 Subject: [PATCH] fix(route): douban 404 from resharing a deleted status (#7409) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如果转发的广播被删除了,就不应当再去请求被删除的原广播了……否则就会抛回404崩溃给你 --- lib/routes/douban/people/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/douban/people/status.js b/lib/routes/douban/people/status.js index 88971be86..0378b32df 100644 --- a/lib/routes/douban/people/status.js +++ b/lib/routes/douban/people/status.js @@ -433,7 +433,7 @@ async function getFullTextItems(ctx, items) { cache = await ctx.cache.get(url); if (cache) { item.status.reshared_status.text = cache; - } else { + } else if (tryFixStatus(item.status.reshared_status).isFixSuccess) { const { data: { text }, } = await got({ url, headers });