diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs index 165d89d..cfef379 100644 --- a/src/frontend/mod.rs +++ b/src/frontend/mod.rs @@ -469,8 +469,10 @@ mod templates { ")" } } - p."p-note" { - @card["properties"]["note"][0]["value"].as_str().unwrap_or_else(|| card["properties"]["note"][0].as_str().unwrap()) + @if card["properties"]["note"].is_array() { + p."p-note" { + @card["properties"]["note"][0]["value"].as_str().unwrap_or_else(|| card["properties"]["note"][0].as_str().unwrap()) + } } @if card["properties"]["url"].is_array() { ul { @@ -794,7 +796,6 @@ pub async fn mainpage<S: Storage>(mut req: Request<ApplicationState<S>>) -> Resu #[cfg(all(debug_assertions, not(test)))] let url = url::Url::parse("https://localhost:8080/").unwrap(); - info!("Request at {}", url); let hcard_url = url.as_str(); let feed_url = url.join("feeds/main").unwrap().to_string(); |