diff options
Diffstat (limited to 'src/post/mod.rs')
| -rw-r--r-- | src/post/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/post/mod.rs b/src/post/mod.rs index 65c859e..be3bf04 100644 --- a/src/post/mod.rs +++ b/src/post/mod.rs @@ -130,6 +130,16 @@ async fn read_post(dir: &str, fname: PathBuf, cli: &Option<mi::Client>) -> Resul .filter(|wm| { wm.title.as_ref().unwrap_or(&"".to_string()) != &"Bridgy Response".to_string() }) + .map(|wm| { + let mut wm = wm.clone(); + wm.title = Some( + mastodon2text::convert( + wm.title.as_ref().unwrap_or(&"".to_string()).to_string(), + ) + .unwrap(), + ); + wm + }) .collect(), None => vec![], }; |
