Reactivate RT and limite size (200)

This commit is contained in:
VC
2020-03-01 20:59:40 +01:00
parent a3e2119de2
commit ebd03a2bd1

View File

@@ -73,7 +73,7 @@ fn get_oauth2_token(config: &Config) -> Token {
/// Get twitter user timeline /// Get twitter user timeline
fn get_user_timeline(config: &Config, token: Token, lid: Option<u64>) -> Result<Vec<Tweet>, Box<dyn Error>> { fn get_user_timeline(config: &Config, token: Token, lid: Option<u64>) -> Result<Vec<Tweet>, Box<dyn Error>> {
// fix the page size to 200 as it is the maximum Twitter authorizes // fix the page size to 200 as it is the maximum Twitter authorizes
let (_timeline, feed) = block_on_all(user_timeline(&config.twitter.username, true, false, &token) let (_timeline, feed) = block_on_all(user_timeline(&config.twitter.username, true, true, &token)
.with_page_size(200) .with_page_size(200)
.older(lid))?; .older(lid))?;