lib/stream/batch.rb in stream-ruby-2.2.5 vs lib/stream/batch.rb in stream-ruby-2.3
- old
+ new
@@ -14,11 +14,15 @@
# {:source => 'flat:1', :target => 'user:1'},
# {:source => 'flat:1', :target => 'user:3'}
# ]
# @client.follow_many(follows)
#
- def follow_many(follows)
- make_signed_request(:post, "/follow_many/", {}, follows)
+ def follow_many(follows, activity_copy_limit=nil)
+ query_params = {}
+ unless activity_copy_limit.nil?
+ query_params['activity_copy_limit'] = activity_copy_limit
+ end
+ make_signed_request(:post, "/follow_many/", query_params, follows)
end
#
# Adds an activity to many feeds in one single request
#