fix
This commit is contained in:
parent
0c0aa465bb
commit
f541d4118c
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue