diff --git a/src/lib.rs b/src/lib.rs index e91642e..7a833d1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -144,6 +144,10 @@ fn build_basic_status(tweet: &Tweet) -> Result> { toot = toot.replace(&decoded_url.0, &decoded_url.1); } + // remove the & and replace it with & + // this is the only entities and/or char that is not available via Twitter API + toot = toot.replace("&", "&"); + Ok(StatusBuilder::new(toot)) }