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:
parent
7465febbdf
commit
144d60b80f
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue