first real functional version

This commit is contained in:
VC
2023-11-08 15:41:27 +01:00
parent bf70072376
commit b3ba8637f8
5 changed files with 55 additions and 9 deletions

View File

@@ -38,7 +38,7 @@ pub async fn run(config: &Config) {
};
// if we wanted to cut toot in half, now would be the right time to do so
// treating medias (nothing for now)
let _tweet_id = post_tweet(&tweet_content, &[])
let _tweet_id = post_tweet(&config.twitter, &tweet_content, &[])
.await
.unwrap_or_else(|e| panic!("Cannot Tweet {}: {}", toot.id, e));
return;