Compare commits

..

No commits in common. "7c7a8c0dcbc88a2e3446a9983f2eaf7022f0d8c7" and "7827c240167df08bcf9f2d63cd7ca141e8d2cba7" have entirely different histories.

7 changed files with 22 additions and 12 deletions

10
Cargo.lock generated
View File

@ -2839,7 +2839,7 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "letterbox"
version = "0.0.91"
version = "0.0.90"
dependencies = [
"build-info",
"build-info-build",
@ -2865,7 +2865,7 @@ dependencies = [
[[package]]
name = "letterbox-server"
version = "0.0.91"
version = "0.0.90"
dependencies = [
"ammonia",
"anyhow",
@ -3384,7 +3384,7 @@ dependencies = [
[[package]]
name = "notmuch"
version = "0.0.91"
version = "0.0.90"
dependencies = [
"itertools 0.10.5",
"log",
@ -4178,7 +4178,7 @@ dependencies = [
[[package]]
name = "procmail2notmuch"
version = "0.0.91"
version = "0.0.90"
dependencies = [
"anyhow",
]
@ -5248,7 +5248,7 @@ dependencies = [
[[package]]
name = "shared"
version = "0.0.91"
version = "0.0.90"
dependencies = [
"build-info",
"notmuch",

View File

@ -1,6 +1,6 @@
[package]
name = "notmuch"
version = "0.0.91"
version = "0.0.90"
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.91"
version = "0.0.90"
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 = "letterbox-server"
version = "0.0.91"
version = "0.0.90"
edition = "2021"
default-run = "letterbox-server"

View File

@ -190,8 +190,18 @@ pub async fn thread(
let slug = r.site.unwrap_or("no-slug".to_string());
let site = r.name.unwrap_or("NO SITE".to_string());
let default_homepage = "http://no-homepage";
// TODO: remove the various places that have this as an Option
let link = Some(Url::parse(&r.link)?);
let link = &r
.link
.as_ref()
.map(|h| {
if h.is_empty() {
default_homepage.to_string()
} else {
h.to_string()
}
})
.map(|h| Url::parse(&h).ok())
.flatten();
let mut body = r.summary.unwrap_or("NO SUMMARY".to_string());
let cacher = Arc::new(Mutex::new(FilesystemCacher::new(&config.slurp_cache_path)?));
let body_tranformers: Vec<Box<dyn Transformer>> = vec![

View File

@ -1,6 +1,6 @@
[package]
name = "shared"
version = "0.0.91"
version = "0.0.90"
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.91"
version = "0.0.90"
name = "letterbox"
repository = "https://github.com/seed-rs/seed-quickstart"
authors = ["Bill Thiede <git@xinu.tv>"]