aboutsummaryrefslogtreecommitdiff
path: root/lib/xesite_markdown/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xesite_markdown/src/lib.rs')
-rw-r--r--lib/xesite_markdown/src/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/xesite_markdown/src/lib.rs b/lib/xesite_markdown/src/lib.rs
index ff26dd8..0c0b65b 100644
--- a/lib/xesite_markdown/src/lib.rs
+++ b/lib/xesite_markdown/src/lib.rs
@@ -191,7 +191,6 @@ pub fn render(inp: &str) -> Result<String> {
el.replace(&xesite_templates::video(path).0, ContentType::Html);
Ok(())
}),
- #[cfg(not(target_arch = "wasm32"))]
element!("xeblog-toot", |el| {
use serde_json::from_reader;
use std::fs;
@@ -206,7 +205,7 @@ pub fn render(inp: &str) -> Result<String> {
let toot_fname = format!("./data/toots/{}.json", hash_string(toot_url.clone()));
tracing::debug!("opening {toot_fname}");
- let mut fin = fs::File::open(&toot_fname).context(toot_url)?;
+ let mut fin = fs::File::open(&toot_fname)?;
let t: Toot = from_reader(&mut fin)?;
let user_fname = format!(
@@ -214,7 +213,7 @@ pub fn render(inp: &str) -> Result<String> {
hash_string(format!("{}.json", t.attributed_to))
);
tracing::debug!("opening {user_fname}");
- let mut fin = fs::File::open(&user_fname).context(t.attributed_to.clone())?;
+ let mut fin = fs::File::open(&user_fname)?;
let u: User = from_reader(&mut fin)?;