This commit is contained in:
joshua stein 2012-07-20 17:58:01 -05:00
parent 0c0aa465bb
commit f541d4118c

View file

@ -178,8 +178,8 @@ class CommentsController < ApplicationController
:include => [ :user, :story ])
if @user
@votes = Vote.comment_votes_by_user_for_story_hash(@user.id,
@comments.map{|c| c.story_id }.uniq)
@votes = Vote.comment_votes_by_user_for_comment_ids_hash(@user.id,
@comments.map{|c| c.id })
@comments.each do |c|
if @votes[c.id]