diff --git a/lib/redditkit/client/links.rb b/lib/redditkit/client/links.rb index dc67cf3..1d8f971 100644 --- a/lib/redditkit/client/links.rb +++ b/lib/redditkit/client/links.rb @@ -59,12 +59,10 @@ def link(link_full_name) # @option options [String] :after Only return links after this identifier. # @return [RedditKit::PaginatedResponse] # @example links = RedditKit.links_with_domain "github.com" - def links_with_domain(domain, options = {}) + def links_with_domain(domain, sort = "new", options = {}) parameters = { :url => domain, :t => options[:time] } options.merge! parameters - options.delete :t - - objects_from_response(:get, 'api/info.json', options) + objects_from_response(:get, "domain/#{domain}/#{sort}.json", options) end # Submits a link or self post to reddit. diff --git a/lib/redditkit/version.rb b/lib/redditkit/version.rb index 32d39e1..feadb7f 100644 --- a/lib/redditkit/version.rb +++ b/lib/redditkit/version.rb @@ -4,7 +4,7 @@ module RedditKit class Version MAJOR = 1 MINOR = 0 - PATCH = 1 + PATCH = 6 class << self