Fix vote counting to only count main target notes (not mixed in ones)

This commit is contained in:
Riyad Preukschas 2012-10-10 12:09:45 +02:00
parent 3f72af9994
commit fb0279f311
3 changed files with 15 additions and 16 deletions

View file

@ -12,11 +12,5 @@ module NotesHelper
!@mixed_targets || @main_target_type == note.noteable_type
end
def note_vote_class(note)
if note.upvote?
"vote upvote"
elsif note.downvote?
"vote downvote"
end
end
end