Skip to content

Commit

Permalink
update to latest twitter gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmund Haselwanter committed May 18, 2011
1 parent d7af5cc commit 24a3fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twitter_tags.rb
Expand Up @@ -73,7 +73,7 @@ module TwitterTags
tag.locals.tweets = JSON.parse(Rails.cache.fetch("timeline_#{tag.locals.user}_#{tag.locals.max}",:expires_in => twitter_expires_in ) do
result = {}
begin
result = Twitter.timeline(tag.locals.user, {:page => 1, :per_page => tag.locals.max} )[0..(tag.locals.max)].to_json
result = Twitter.user_timeline(tag.locals.user, {:page => 1, :per_page => tag.locals.max} )[0..(tag.locals.max)].to_json
rescue Exception => e
logger.error "Unable to fetch user timeline: #{e.inspect}"
result = {}
Expand Down

0 comments on commit 24a3fdf

Please sign in to comment.