Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactor Twitter::API::Timelines#retweeted_by_user to use retweets_fr…

…om_timeline
  • Loading branch information...
commit 496b74530f5f8ec026c61edd7bb19edc4da1d6c2 1 parent c94e555
@sferik authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/twitter/api/timelines.rb
View
6 lib/twitter/api/timelines.rb
@@ -72,10 +72,8 @@ def user_timeline(*args)
# @example Return the 20 most recent retweets posted by @sferik
# Twitter.retweeted_by_user('sferik')
def retweeted_by_user(user, options={})
- options[:include_rts] = true
- count = options[:count] || DEFAULT_TWEETS_PER_REQUEST
- collect_with_count(count) do |count_options|
- select_retweets(user_timeline(user, options.merge(count_options)))
+ retweets_from_timeline(options) do |opts|
+ user_timeline(user, opts)
end
end
alias retweeted_by retweeted_by_user
Please sign in to comment.
Something went wrong with that request. Please try again.