diff 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
line wrap: on
line diff
--- a/app/models/tweet.rb	Sun Oct 30 04:24:41 2016 +0900
+++ b/app/models/tweet.rb	Sun Oct 30 04:26:09 2016 +0900
@@ -9,7 +9,7 @@
     begin
       @timeline ||=
         Rails.cache.fetch({ :timeline => @twitter_id }, :expires_in => cache_expires_time) do
-          @client.user_timeline(@twitter_id, :count => 40, :exclude_replies => false, :include_rts => true, :tweet_mode => :extended)
+          @client.user_timeline(@twitter_id, :count => 100, :exclude_replies => false, :include_rts => true, :tweet_mode => :extended)
         end
     rescue Twitter::Error::TooManyRequests
       next_client_config_id = @client_config_id + 1