Permalink
Browse files

Fix Disqus::Forum.find(id), bad logic for .list() opts

  • Loading branch information...
1 parent 629d39e commit aaf8873bdd8e6f0674b97714dfb8a6be1cafe95b Eric Peters committed Apr 12, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/disqus/forum.rb
View
@@ -29,8 +29,7 @@ def self.list(user_api_key = nil)
# Returns a Forum object corresponding to the given forum_id or nil if it was not found.
def self.find(forum_id, user_api_key = nil)
- opts = user_api_key ? {:api_key => user_api_key} : {}
- list = Forum.list(opts)
+ list = Forum.list(user_api_key)
if list
list.select{|f| f.id == forum_id}.first
end

0 comments on commit aaf8873

Please sign in to comment.