From 194557d8bd11ffcf31333c252a63318683bcccf4 Mon Sep 17 00:00:00 2001 From: thea Date: Fri, 23 Sep 2016 15:55:09 +0200 Subject: included count for tweet fetch --- app/helpers/twitter_helper.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'app/helpers') 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." -- cgit v1.2.3