lib/cosgrove/utils.rb in cosgrove-0.0.3rc1 vs lib/cosgrove/utils.rb in cosgrove-0.0.3.1
- old
+ new
@@ -167,10 +167,10 @@
author_name, permlink = parse_slug slug
find_comment(chain: :steem, author_name: author_name, permlink: permlink)
end
def find_comment(options)
- chain = options[:chain]
+ chain = options[:chain] || :steem
author_name = options[:author_name]
permlink = options[:permlink]
parent_permlink = options[:parent_permlink]
post = if chain == :steem