Mercurial > rsstweet
comparison app/models/tweet.rb @ 108:8b2d770160e3
Increase count to 100
As feedbin fetching delay increased to 10 minutes, someone may now tweet over 40 times and thus hiding the older tweets.
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 30 Oct 2016 04:26:09 +0900 |
parents | de342c5df747 |
children | 3646b3e319c7 |
comparison
equal
deleted
inserted
replaced
107:de342c5df747 | 108:8b2d770160e3 |
---|---|
7 start_client_config_id = @client_config_id | 7 start_client_config_id = @client_config_id |
8 | 8 |
9 begin | 9 begin |
10 @timeline ||= | 10 @timeline ||= |
11 Rails.cache.fetch({ :timeline => @twitter_id }, :expires_in => cache_expires_time) do | 11 Rails.cache.fetch({ :timeline => @twitter_id }, :expires_in => cache_expires_time) do |
12 @client.user_timeline(@twitter_id, :count => 40, :exclude_replies => false, :include_rts => true, :tweet_mode => :extended) | 12 @client.user_timeline(@twitter_id, :count => 100, :exclude_replies => false, :include_rts => true, :tweet_mode => :extended) |
13 end | 13 end |
14 rescue Twitter::Error::TooManyRequests | 14 rescue Twitter::Error::TooManyRequests |
15 next_client_config_id = @client_config_id + 1 | 15 next_client_config_id = @client_config_id + 1 |
16 init_client next_client_config_id | 16 init_client next_client_config_id |
17 | 17 |