Skip to content

Commit

Permalink
fix(route): douban 404 from resharing a deleted status (DIYgod#7409)
Browse files Browse the repository at this point in the history
如果转发的广播被删除了,就不应当再去请求被删除的原广播了……否则就会抛回404崩溃给你
  • Loading branch information
AgFlore authored May 10, 2021
1 parent a8c1497 commit aa72a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/douban/people/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit aa72a2c

Please sign in to comment.