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-02-28 17:07:14 -05:00 committed by GitHub
parent 7465febbdf
commit 144d60b80f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

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) => {