diff options
| author | Xe Iaso <me@christine.website> | 2023-01-04 14:55:54 -0500 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2023-01-04 14:55:54 -0500 |
| commit | 665bc0b334a671587dcbc39f5e2b77b24a6df88f (patch) | |
| tree | 74f77831a70c5be49e01b477637af7e2ca1b878d /src/post | |
| parent | 351069d9f91edab96425bcd221858529acb7e08a (diff) | |
| download | xesite-665bc0b334a671587dcbc39f5e2b77b24a6df88f.tar.xz xesite-665bc0b334a671587dcbc39f5e2b77b24a6df88f.zip | |
attempt to change webmention titles
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'src/post')
| -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![], }; |
