lib/ayadn/workers.rb in ayadn-1.7.0 vs lib/ayadn/workers.rb in ayadn-1.7.1
- old
+ new
@@ -267,9 +267,10 @@
post['entities']['hashtags'].map { |h| h['name'] }
end
def build_channels(data, options = {})
bucket = []
+ data = [data] unless data.is_a?(Array)
if options[:channels]
puts "Downloading list of channels and their users credentials.\n\nPlease wait, it could take a while if there are many results and users...".color(:cyan)
else
puts "Downloading new channels and unknown users ids.\nThis is a one time operation, ids are being recorded in a database.\n\nPlease wait, it could take a while if you have many channels...".color(:cyan)
end