summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorluca-marie <ml.kochsiek@fu-berlin.de>2016-09-22 16:11:12 +0200
committerluca-marie <ml.kochsiek@fu-berlin.de>2016-09-22 16:11:12 +0200
commita771c63ff6a04f2f80b94c35538dd62ad1b0c310 (patch)
treed52381cc04b895d80e7254db7baa3d041081f32d /app/helpers
parentcd07bbe8d0390a8622bcde257efcb3e11038de63 (diff)
same same but slightly different
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/twitter_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/twitter_helper.rb b/app/helpers/twitter_helper.rb
index e3b468a..cf75a73 100644
--- a/app/helpers/twitter_helper.rb
+++ b/app/helpers/twitter_helper.rb
@@ -22,7 +22,7 @@ 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(7)
+ 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's tweets are protected. Please change the privacy settings accordingly."