fix(route/423down): exclude ad entries (#21254)

Some list entries are ad posts that redirect to
external domains with problematic TLS certificate
chains, causing detail fetch to fail and break the
route.
This commit is contained in:
Bush2021
2026-03-01 06:07:14 +08:00
committed by GitHub
parent 7465febbdf
commit 144d60b80f
+2 -1
View File
@@ -27,8 +27,9 @@ export const handler = async (ctx) => {
item = $(item);
const link = item.find('h2 a').prop('href');
const isAdItem = item.find('span.cat').text().includes('423Down');
return new RegExp(domain).test(link);
return new RegExp(domain).test(link) && !isAdItem;
})
.slice(0, limit)
.map((item) => {