summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorthea <ta.kupler@gmail.com>2016-09-23 15:55:09 +0200
committerthea <ta.kupler@gmail.com>2016-09-23 15:56:33 +0200
commit194557d8bd11ffcf31333c252a63318683bcccf4 (patch)
treee6ecc38772e7bf965e8a1ade785cfb62a67176cd /app/helpers
parentd44fc9292637ed6d1a4a7e04883e8b3b88dc3c15 (diff)
included count for tweet fetch
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/twitter_helper.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/helpers/twitter_helper.rb b/app/helpers/twitter_helper.rb
index 719f95e..cc48084 100644
--- a/app/helpers/twitter_helper.rb
+++ b/app/helpers/twitter_helper.rb
@@ -22,7 +22,6 @@ module TwitterHelper
def update_twitter_info
twitter_user_info[0] = Time.now
twitter_user_info[1] = twitter_client.user(twitter_handle).name
- twitter_user_info[2] = twitter_client.user_timeline(twitter_handle).select{ |tweet| tweet.text.start_with?('RT','@')==false}.take(3)
if twitter_user_info[2] == nil
error_handling
twitter_user_info[3] = "The twitter-handle does not exist or the account is private. Please change it or contact your provider-admin."