lib/ayadn/endpoints.rb in ayadn-1.8.2 vs lib/ayadn/endpoints.rb in ayadn-2.0
- old
+ new
@@ -54,11 +54,11 @@
@options_list = if options[:count] || options[:since_id]
API.build_query(options)
else
API.build_query({count: Settings.options[:counts][:global]})
end
- if Settings.options[:force]
+ if Settings.global[:force] == true
"#{@posts_url}stream/global?#{@options_list}"
else
"#{@posts_url}stream/global?access_token=#{Settings.user_token}#{@options_list}"
end
end
@@ -103,10 +103,10 @@
@options_list = if options[:count]
API.build_query(options)
else
API.build_query({count: Settings.options[:counts][:posts]})
end
- if Settings.options[:force]
+ if Settings.global[:force] == true
"#{@users_url}#{username}/posts/?#{@options_list}"
else
"#{@users_url}#{username}/posts/?access_token=#{Settings.user_token}#{@options_list}"
end
end