Skip to content

Commit

Permalink
Fix comment file glob so it actually finds files in subdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmer committed Mar 5, 2012
1 parent b053eca commit 4c27fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static_comments.rb
Expand Up @@ -42,7 +42,7 @@ def self.find_for_post(post)
def self.read_comments(source)
comments = Hash.new() { |h, k| h[k] = Array.new }

Dir["#{source}/**/_comments/**"].sort.each do |comment|
Dir["#{source}/**/_comments/**/*"].sort.each do |comment|
next unless File.file?(comment) and File.readable?(comment)
yaml_data = YAML::load_file(comment)
post_id = yaml_data.delete('post_id')
Expand Down

0 comments on commit 4c27fb9

Please sign in to comment.