mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 17:11:19 +02:00
Replace & by & in the text of the toot (from the tweet)
This commit is contained in:
@@ -144,6 +144,10 @@ fn build_basic_status(tweet: &Tweet) -> Result<StatusBuilder, Box<dyn Error>> {
|
||||
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))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user