Skip to content
Browse files

fix when authenticated as someone else

  • Loading branch information...
1 parent 1330431 commit d97438f5de89a1a15ad8ff5e67e8e0c7d412911f @nbraem nbraem committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/twitter/api/friends_and_followers.rb
View
2 lib/twitter/api/friends_and_followers.rb
@@ -326,7 +326,7 @@ def friends(*args)
def friends_or_followers_from_response(request_method, path, args)
options = extract_options!(args)
merge_default_cursor!(options)
- merge_user!(options, args.pop || screen_name)
+ merge_user!(options, args.pop || screen_name) if options[:screen_name].nil? and options[:user_id].nil?
cursor_from_response(:users, Twitter::User, request_method, path, options, calling_method)
end

0 comments on commit d97438f

Please sign in to comment.
Something went wrong with that request. Please try again.