feature: add test for build_basic_status() fn

This commit is contained in:
VC
2022-04-24 14:06:46 +02:00
parent 6c0383d9d0
commit 734f03f5a9
4 changed files with 83 additions and 24 deletions

View File

@@ -82,13 +82,7 @@ pub async fn run(config: Config) {
};
// build basic status by just yielding text and dereferencing contained urls
let mut status_text = match build_basic_status(tweet) {
Ok(t) => t,
Err(e) => {
error!("Could not create status from tweet {}: {}", tweet.id ,e);
continue;
},
};
let mut status_text = build_basic_status(tweet);
let mut status_medias: Vec<String> = vec![];
// reupload the attachments if any