Compare commits

...

2 Commits

Author SHA1 Message Date
b4b64c33a6 Bumping version to 0.0.17 2024-09-12 10:07:00 -07:00
47b1875022 server: tweak cloudflare and prusa slurp config 2024-09-12 10:06:46 -07:00
7 changed files with 13 additions and 13 deletions

10
Cargo.lock generated
View File

@ -2111,7 +2111,7 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "letterbox"
version = "0.0.16"
version = "0.0.17"
dependencies = [
"build-info",
"build-info-build",
@ -2516,7 +2516,7 @@ dependencies = [
[[package]]
name = "notmuch"
version = "0.0.16"
version = "0.0.17"
dependencies = [
"itertools 0.10.5",
"log",
@ -3121,7 +3121,7 @@ dependencies = [
[[package]]
name = "procmail2notmuch"
version = "0.0.16"
version = "0.0.17"
dependencies = [
"anyhow",
]
@ -3908,7 +3908,7 @@ dependencies = [
[[package]]
name = "server"
version = "0.0.16"
version = "0.0.17"
dependencies = [
"ammonia",
"anyhow",
@ -3994,7 +3994,7 @@ dependencies = [
[[package]]
name = "shared"
version = "0.0.16"
version = "0.0.17"
dependencies = [
"build-info",
"notmuch",

View File

@ -1,6 +1,6 @@
[package]
name = "notmuch"
version = "0.0.16"
version = "0.0.17"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,6 +1,6 @@
[package]
name = "procmail2notmuch"
version = "0.0.16"
version = "0.0.17"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,6 +1,6 @@
[package]
name = "server"
version = "0.0.16"
version = "0.0.17"
edition = "2021"
default-run = "server"

View File

@ -180,10 +180,10 @@ pub async fn thread(pool: &PgPool, thread_id: String) -> Result<Thread, ServerEr
Selector::parse("div.entry-content").unwrap(),
],
"blog.prusa3d.com".to_string() => vec![
Selector::parse("article.content").unwrap(),
Selector::parse("article.content .post-block").unwrap(),
],
"blog.cloudflare.com".to_string() => vec![
Selector::parse(".author-lists").unwrap(),
Selector::parse(".author-lists .author-name-tooltip").unwrap(),
Selector::parse(".post-full-content").unwrap()
],
"engineering.fb.com".to_string() => vec![
@ -213,11 +213,11 @@ pub async fn thread(pool: &PgPool, thread_id: String) -> Result<Thread, ServerEr
Box::new(FrameImages),
Box::new(AddOutlink),
Box::new(EscapeHtml),
Box::new(InlineStyle),
Box::new(SanitizeHtml {
cid_prefix: "",
base_url: &link,
}),
Box::new(InlineStyle),
];
for t in body_tranformers.iter() {
if t.should_run(&link, &body) {

View File

@ -1,6 +1,6 @@
[package]
name = "shared"
version = "0.0.16"
version = "0.0.17"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,5 +1,5 @@
[package]
version = "0.0.16"
version = "0.0.17"
name = "letterbox"
repository = "https://github.com/seed-rs/seed-quickstart"
authors = ["Bill Thiede <git@xinu.tv>"]