diff --git a/src/lib.rs b/src/lib.rs index aa2eda5..98a371f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -394,6 +394,8 @@ pub fn run(config: Config) { // publish status mastodon.new_status(status).unwrap(); + // this will panic if it cannot publish the status, which is a good thing, it allows the + // last_tweet gathered not to be written // write the current state (tweet ID) to avoid copying it another time write_state(&config.scootaloo.last_tweet_path, tweet.id).unwrap_or_else(|e|