verify_or_fix_cached_comment_count

in lib/helpers.rb [20:29]


  def verify_or_fix_cached_comment_count(comment, comment_hash)
    
    unless comment_hash["children"].nil?
      if comment_hash["child_count"] != comment_hash["children"].length
        comment.update_cached_child_count
        comment_hash["child_count"] = comment.get_cached_child_count
      end
    end
  end