Add support for newsletters hosted on getrevue.co

This commit is contained in:
Hongbo Wu 2022-07-06 22:06:51 +08:00
parent 2e77241044
commit 9599edb9fb

View file

@ -443,6 +443,14 @@ export const isProbablyNewsletter = async (html: string): Promise<boolean> => {
}
}
// Check if this is a newsletter from revue
if (dom.querySelectorAll('img[src*="getrevue.co"]').length > 0) {
const getrevueUrl = revueNewsletterHref(dom)
if (getrevueUrl) {
return true
}
}
return false
}