server: improve cloudflare and grafana image and iframe rendering
This commit is contained in:
@@ -176,6 +176,10 @@ pub async fn thread(pool: &PgPool, thread_id: String) -> Result<Thread, ServerEr
|
||||
let body_tranformers: Vec<Box<dyn Transformer>> = vec![
|
||||
Box::new(SlurpContents {
|
||||
site_selectors: hashmap![
|
||||
"blog.cloudflare.com".to_string() => vec![
|
||||
Selector::parse(".author-lists").unwrap(),
|
||||
Selector::parse(".post-full-content").unwrap()
|
||||
],
|
||||
"hackaday.com".to_string() => vec![
|
||||
Selector::parse("div.entry-featured-image").unwrap(),
|
||||
Selector::parse("div.entry-content").unwrap()
|
||||
|
||||
Reference in New Issue
Block a user