summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluca-marie <ml.kochsiek@fu-berlin.de>2016-09-23 11:52:46 +0200
committerthea <ta.kupler@gmail.com>2016-11-08 16:30:07 +0100
commitfa9f61caa635beb7b12d913dcd8351caf04a2260 (patch)
tree417f150bcb3d6da03fa627850b3da126634ece21 /app
parent791e03c838ccb0f346e34b04838eedaeb5fcff36 (diff)
Doc updated on how to customize avatar picture in twitter feature; update error response messages; added 'config/customization/images' + link in 'config/initializer/customization.rb'
Diffstat (limited to 'app')
-rw-r--r--app/helpers/twitter_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/twitter_helper.rb b/app/helpers/twitter_helper.rb
index 7ce28be..e44d883 100644
--- a/app/helpers/twitter_helper.rb
+++ b/app/helpers/twitter_helper.rb
@@ -22,7 +22,11 @@ module TwitterHelper
def update_twitter_info
twitter_user_info[0] = Time.now
twitter_user_info[1] = twitter_client.user(twitter_handle).name
+<<<<<<< 791e03c838ccb0f346e34b04838eedaeb5fcff36
twitter_user_info[2] = twitter_client.user_timeline(twitter_handle, {:count => 200}).select{ |tweet| tweet.text.start_with?('RT','@')==false}
+=======
+ twitter_user_info[2] = twitter_client.user_timeline(twitter_handle).select{ |tweet| tweet.text.start_with?('RT','@')==false}.take(10)
+>>>>>>> Doc updated on how to customize avatar picture in twitter feature; update error response messages; added 'config/customization/images' + link in 'config/initializer/customization.rb'
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 or contact your provider-admin."