diff --git a/src/lib.rs b/src/lib.rs index b7edac0..9925def 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,9 +57,6 @@ pub async fn run(config: Config) { .map(|s| s.tweet_id); drop(lconn); - // get Mastodon instance - let mastodon = get_mastodon_token(&mastodon_config); - // get user timeline feed (Vec) let mut feed = get_user_timeline(&mastodon_config.twitter_screen_name, &token, last_tweet_id) @@ -77,6 +74,9 @@ pub async fn run(config: Config) { return; } + // get Mastodon instance + let mastodon = get_mastodon_token(&mastodon_config); + // order needs to be chronological feed.reverse();